05 2017 档案

摘要:看到过好多onclick='location.href("index.aspx")'这种方式,试了一次并不行,应该改为下面的方式 <input type="button" onclick='location.href=("index.aspx")' />//在本页面打开 <input type="b 阅读全文
posted @ 2017-05-25 14:45 龙蝶 阅读(24409) 评论(0) 推荐(0) 编辑
摘要:<input type="text" name="name" value="" onkeyup="value=value.replace(/[^\d]/g,'')" /> 阅读全文
posted @ 2017-05-23 19:28 龙蝶 阅读(742) 评论(0) 推荐(0) 编辑
摘要:$("#showPassword").attr("checked") 提示提示undefied 需要改为 $("#showPassword").prop("checked") 或者改为 $("#showPassword").is(":checked") 阅读全文
posted @ 2017-05-17 16:03 龙蝶 阅读(596) 评论(0) 推荐(0) 编辑
摘要:Create table B([id] int,[name] nvarchar(1))Insert Bselect 1,N'a' union allselect 1,N'b' union allselect 2,N'c' union allselect 2,N'd' union allselect 阅读全文
posted @ 2017-05-15 16:10 龙蝶 阅读(1329) 评论(0) 推荐(0) 编辑
摘要:直接jquery代码: var checked=$("input[name='checked']:checked");//获取复选框被选中状态 if(!(checked&&checked.length>0)){//判断复选框是否被选中 alert("请选择一项"); return false; } 阅读全文
posted @ 2017-05-15 16:02 龙蝶 阅读(494) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示