0
我正在使用intel xdk進行移動複製。changepage上的閃爍問題
我想這取決於categorid
從主頁
$('img.categories').bind("click",function(){
ProductList.categoryId=$(this).data('value');
$.mobile.changePage('productlist.html')
});
var ProductList={
categoryId:null,
init:function(){
this.loadProducts();
},
loadProducts:function(){
//code to load products depending on categoryid
}
},
發送到加載產品productList的頁面上,但是當我點擊任何圖像loadproducts上。打開產品列表並再次顯示主頁,然後再顯示產品列表頁面。這種情況也發生在我的其他頁面上。 功能正常,但這個閃爍的問題在那裏。
任何解決方案?
你看到在設備上還是在XDK模擬器這種行爲?你有可能提供更完整的可運行測試用例嗎? – OldGeeksGuide
@OldGeeksGuide on device only only in emulator! :)。那麼談論可運行的情況下,我怎麼能因爲它在桌面上正常工作 –