/*站外输出网站时加上特殊标识符*/ $("a").each(function(index, item) { var url = $(item).attr("href"); if (url) { if (url.indexOf("http") != -1 && url.indexOf("isiyuan") == -1 && url.slice(url.length - 1, url.length) == "/") { /*满足条件 有出站http,并且不是本站关键字符串,且最后是斜杠 能够带输出标识符的*/ $(item).attr("href", url + "#isiyuan"); } } });
资源网,博客文章页面增加访问停留时间代码 <!-- 统计访客停留时间 --> <div id="tingliu"> </span> <span clas...
手机端获取城市名称 百度地图接口 引入百度api<script src="http://api.map.baidu.com/api?v=1.4" type="text/javascript"...
分享两个版本的网站运行时间代码 PHP版本 显示为 本站运行:3年9月10天 <?php date_default_timezone_set('Asia/Shanghai')...
//屏蔽F12和右键 function click(e) { if (document.all) { if (event.button==2||event.button==3) { alert("你...
1.$.getJSON $.getJSON()是专门为ajax获取json数据而设置的,并且支持跨域调用,其语法的格式为: $.getJSON( url, ...
好久不更新了 [JS]文字逐字打出 代码如下 <!DOCTYPE html> <html> <head> <meta char...