位置:首页 追溯系统
function checks(){ var jqs=jQuery.noConflict(); var keyword = jqs("#keyboard").val(); if(keyword == '' || keyword == '请输入批次号'){ alert("请输入批次号"); return false; } } function chkSQL(obj, val) { if (val.indexOf("<") > -1 || val.indexOf("<") > -1 || val.indexOf("/*") > -1 || val.indexOf("*/") > -1 || val.indexOf("'") > -1 || val.indexOf("|") > -1 || val.indexOf(";") > -1 || val.indexOf("select") > -1 || val.indexOf("insert") > -1 || val.indexOf("delete") > -1 || val.indexOf("update") > -1 || val.indexOf("create") > -1 || val.indexOf("insert") > -1 || val.indexOf("drop") > -1 || val.indexOf("and") > -1 || val.indexOf("exec") > -1 || val.indexOf("count") > -1 || val.indexOf("chr") > -1 || val.indexOf("mid") > -1 || val.indexOf("master") > -1 || val.indexOf("or") > -1 || val.indexOf("truncate") > -1 || val.indexOf("char") > -1 || val.indexOf("declare") > -1 || val.indexOf("join") > -1 || val.indexOf(">") > -1 || val.indexOf("u") > -1) { alert("请不要包含危险字符!"); obj.value=""; return; } }
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F83e0e9e94a3a27d275bd2afa4d1250eb' type='text/javascript'%3E%3C/script%3E"));