随笔分类 -  页面小案例

摘要://计算180天后的日期//180*24*60*60*1000//更具时间戳计算n天前的日期 $(function () { var timestamp =Date.parse(new Date()); var tenDayAgo=timestamp-15552000000; var timeAgo 阅读全文
posted @ 2019-06-11 16:38 zhouwen周文 阅读(957) 评论(0) 推荐(0)
摘要:function GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr( 阅读全文
posted @ 2019-01-02 15:06 zhouwen周文 阅读(1750) 评论(0) 推荐(0)
摘要:var pic2 = document.getElementById("pic2"); //鼠标移动到图片上 pic.onmouseover = function(){ document.getElementById("p1").style.display="block";//show的displa 阅读全文
posted @ 2018-08-09 14:35 zhouwen周文 阅读(126) 评论(0) 推荐(0)
摘要:$(function() { var phone = $('#phone').text(); var mphone = phone.substr(0, 3) + '****' + phone.substr(7); 此时mphone 的值就是中间四位显示为*号的了; $('#phone').text( 阅读全文
posted @ 2018-05-16 15:22 zhouwen周文 阅读(461) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html><head> <title>监控测试</title> <script src="http://the5fireblog.b0.upaiyun.com/staticfile/swfobject.js"></script></head><body><!--移动端 阅读全文
posted @ 2018-05-09 17:05 zhouwen周文 阅读(394) 评论(0) 推荐(0)
摘要:<div style="width: 400px;"><span id="clock" ></span></div> <script type="text/javascript"> window.onload =function() {x=window.setInterval(function(){ 阅读全文
posted @ 2018-05-09 17:01 zhouwen周文 阅读(97) 评论(0) 推荐(0)