0
當$(文件)。就緒(函數()停止,如果窗口是提前大於350當文檔被加載,停止加載如果這個條件不滿足
$(document).ready(function(){
if ($(window).width() > 350){
alert ("No!!! stop");
// I want to stop loading the page altogether if window is less than 350.
return false;
}
else if ($(window).width() < 350) {
alert ("Ok continue.")
}
感謝。
請學習'Java'和'javascript'之間的區別,然後再繼續。 –
@SotiriosDelimanolis - 我沒有在這裏看到Java的任何提及?我錯過了什麼? –
@TravisJ我編輯了出來。 –