$(select#ddllei option:selected).val();//取值 $("#ddllei2").get(0).options[0].selected = true;//赋值
var data="{msg: 0, msgbox: \"03\"}"; var objdata = eval(( + data + )); //转为json
新窗口打开:window.open(http://www.baidu.com,_blank) 原窗口打开:window.open(http://www.baidu.com,_self)
var targetProtocol = "https:";if (window.location.protocol != targetProtocol){ window.location.href = targetProtocol + window.location.href.substring(window.location.protocol.length);}
兼容pc手机版本的电子书特效,特别好用,不会使用联系:294243780@qq.com点击预览
function getParentUrl(){ var url = null; if (parent !== window) { try { url = parent.location.href; } catch (e) { url = document.referr...
if ($("#ckbState").prop("checked")) { alert("已选择"); }
利用ajax异步上传图片,jquery.form 上传图片插件,upload.js 上传图片插件用这个版本 js jquery-1.3.2.min.js点击预览
//验证身份证号 var ChenkSfz = /^\d{17}[\d|x|X]|\d{15}$/; if (!ChenkSfz.test(Card)) { alert("请输入正确的身份证号"); $("#...