08 2016 档案

摘要:Date currentTime = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String dateString = formatter.format(currentT 阅读全文
posted @ 2016-08-13 09:52 it小将1992 阅读(234) 评论(0) 推荐(0)
摘要:1,javascript 设置<a>的值 document.getElementById("myId").setAttribute("href","www.xxx.com"); document.getElementById("myId").href = "www.xxx.com"; 2,js 设置 阅读全文
posted @ 2016-08-05 13:38 it小将1992 阅读(235) 评论(0) 推荐(0)
摘要:(1)typeof用法 typeof的运算数未定义,返回的就是 "undefined". 运算数为数字 typeof(x) = "number" 字符串 typeof(x) = "string" 布尔值 typeof(x) = "boolean" 对象,数组 和null typeof(x) = "o 阅读全文
posted @ 2016-08-04 14:44 it小将1992 阅读(1297) 评论(0) 推荐(0)
摘要:第一种: 第一种: 复制代码代码如下: <script language="javascript" type="text/javascript"> window.location.href="login.jsp?backurl="+window.location.href; </script> 第二 阅读全文
posted @ 2016-08-04 10:04 it小将1992 阅读(1165) 评论(0) 推荐(0)
摘要:js怎么获得li的value? <li id="a" value="1">A</li><li id="a" value="2">b</li><li id="a" value="3">b</li><li id="a" value="4">sd</li><li id="a" value="5"> 阅读全文
posted @ 2016-08-03 20:19 it小将1992 阅读(1007) 评论(0) 推荐(0)