<οnkeyup="clearNoNum(this)" οnblur="aaa(this)">
3:支付密码跳到下一位 聚焦 焦点
function next(num){
num.value=num.value.replace(/\D/g,'');
var oNext = num.nextElementSibling||num.nextSibling;
if(num.value!=null&&num.value!=""){
oNext.focus();
}
}
4.json转化前台对象
{ head:{resultCode=?,resultMessage=?},
response:{signature=?,randomStr=?,timestamp=?,appid=?,phoneNumber=?} }
json = eval('(' + json + ')');
5.前台跳转页面 ajax跳转 mvc跳转
window.location.href="https://vv.100bingo.cn/frontweb/takeup";
6.$jquery不管用 jquery不加载 $不管用
页面加载js文件放在</body>之前
7.js不返回上一页:
<script type='text/javascript'>
window.history.forward();//禁止页面后退
window.οnbefοreunlοad=function (){
}
</script>
8.js查询 模糊查询 页面模糊查询 js模糊查询
<script type="text/javascript">
$(function(){
$("#filterName").keyup(function(){
$("table tbody tr")
.hide()
.filter(":contains('"+( $(this).val() )+"')")
.show();
})
})
</script>