05 2017 档案
摘要:看到过好多onclick='location.href("index.aspx")'这种方式,试了一次并不行,应该改为下面的方式 <input type="button" onclick='location.href=("index.aspx")' />//在本页面打开 <input type="b
阅读全文
摘要:<input type="text" name="name" value="" onkeyup="value=value.replace(/[^\d]/g,'')" />
阅读全文
摘要:$("#showPassword").attr("checked") 提示提示undefied 需要改为 $("#showPassword").prop("checked") 或者改为 $("#showPassword").is(":checked")
阅读全文
摘要: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
阅读全文
摘要:直接jquery代码: var checked=$("input[name='checked']:checked");//获取复选框被选中状态 if(!(checked&&checked.length>0)){//判断复选框是否被选中 alert("请选择一项"); return false; }
阅读全文