WhatsApp提示

以下是WhatsApp在Android和iPhone上的终极技巧.-第5页

(function(){ document.querySelector(".jump-group").addEventListener("submit",function(e){ e.preventDefault(); var num = parseInt(this.querySelector("input").value); var url = window.location.href; var total = parseInt(this.querySelector(".total").innerText); var path = url.substring(0,url.lastIndexOf('/') + 1); if(num <= total & num > 1){ if(url.indexOf("how-to.html") > 0){ window.location.href = path + "how-to/" + num + ".html"; }else{ window.location.href = path + num + ".html"; } }else{ alert("submit failed! please enter again.") } }) })()