![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
haishengwoai
机会总是留给那些有准备的人!!!
展开
-
JS自动完成(仿google)
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">ul,li{}{margin: 0; padding: 0;width:100%;}function checkword(){ var wordvalue=document.getElementById("word").value.toLowerCase(); var all原创 2009-08-10 23:12:00 · 1276 阅读 · 0 评论 -
js 获得项目根目录
<br /><script><br />function getRootPath(){<br />var strFullPath=window.document.location.href;<br />var strPath=window.document.location.pathname;<br />var pos=strFullPath.indexOf(strPath);<br />var prePath=strFullPath.substring(0,pos);<br />var postPath=原创 2010-07-30 14:12:00 · 1160 阅读 · 0 评论 -
JS计算日期天数之差 兼容IE,FF
var d1="2014-01-01"; var d2="2014-01-09"; var minDate = new Date(d1.replace(new RegExp(/(-)/g), '/')); var maxDate = new Date(d2.replace(new RegExp(/(-)/g), '/'));原创 2014-03-07 14:42:12 · 732 阅读 · 0 评论 -
文本框默认提示信息,以及密码默认提示
input type="text" id="txtUserName" name="UserName" maxlength="50" value="请输入用户名" style="color: #999999" /> input type="text" id="showPwd" class="inputone" maxlength="50" name="Password" value="请输入原创 2016-04-07 14:17:56 · 1970 阅读 · 0 评论 -
密码非对称加密
第一步: index.aspx页面代码引用jQuery ,引用非对称jsencrypt<script src="JS/jquery-1.8.3.min.js" type="text/javascript"></script><script src="JS/jsencrypt.js" type="text/javascript"></scrip...原创 2019-05-30 17:03:57 · 503 阅读 · 0 评论