随笔分类 - 页面小案例
摘要://计算180天后的日期//180*24*60*60*1000//更具时间戳计算n天前的日期 $(function () { var timestamp =Date.parse(new Date()); var tenDayAgo=timestamp-15552000000; var timeAgo
阅读全文
摘要:function GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(
阅读全文
摘要:var pic2 = document.getElementById("pic2"); //鼠标移动到图片上 pic.onmouseover = function(){ document.getElementById("p1").style.display="block";//show的displa
阅读全文
摘要:$(function() { var phone = $('#phone').text(); var mphone = phone.substr(0, 3) + '****' + phone.substr(7); 此时mphone 的值就是中间四位显示为*号的了; $('#phone').text(
阅读全文
摘要:<!DOCTYPE html><html><head> <title>监控测试</title> <script src="http://the5fireblog.b0.upaiyun.com/staticfile/swfobject.js"></script></head><body><!--移动端
阅读全文
摘要:<div style="width: 400px;"><span id="clock" ></span></div> <script type="text/javascript"> window.onload =function() {x=window.setInterval(function(){
阅读全文