خرید بک لینک

Vote count: 0

I'm writing Cordova project with jQuery Mobile.I have the code to detect user scroll to the bottom.It's work but I don't know why the code need to be placed inside deviceready event handler? Waiting for something get ready?

function onDeviceReady() { $(window).scroll(function () { if ($(window).scrollTop() + $(window).height() == $(document).height()) { alert("bottom!"); } }); }

asked 39 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 12 تير 1395 ساعت: 16:31

صفحه بندی