I have used winstore-jscompat.js for js fix. below code generate sub categories. But it doesnt call parseSubCategory function.
$.each(category.sub_categories, function(index2, subcategory) {
var subCatName = subcategory.name;
$("#test-listview" + index).append('<li><a onclick=\"parseSubCategory(' + subcategory.id + ',\'' + subCatName + '\');\" href="#product_List">' + subcategory.name + '</a></li>');
});
Edit:
This is working fine on ios and android but not in windows mobile phone
Issue happened because of pulling in potentially unsafe content from an external sources. We can modify jquery source and ignore this. I have found the solutions here.
https://www.incloud.de/2012/08/windows-8-using-jquery-for-app-development/
It works for me.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句