摘要:
(function($) {var supportedCSS,styles=document.getElementsByTagName("head")[0].style,toCheck="transformProperty WebkitTransform OTransform msTransform 阅读全文
posted @ 2016-11-28 20:41
<张磊>
阅读(652)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title></title> <meta name="description" content="刮 阅读全文
posted @ 2016-11-28 20:39
<张磊>
阅读(187)
评论(0)
推荐(0)
摘要:
browser: (function(){ var ua = navigator.userAgent.toLowerCase(); var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || /(webkit)[ \/]([\w.]+)/.exec( ua ) 阅读全文
posted @ 2016-11-28 20:13
<张磊>
阅读(168)
评论(0)
推荐(0)
摘要:
//截取字符串多余显示引号 var cutStrForNum = function (str, num) { var len = 0; for (var i = 0; i < str.length; i++) { if (str[i].match(/[^\x00-\xff]/ig) != null) 阅读全文
posted @ 2016-11-28 20:04
<张磊>
阅读(870)
评论(0)
推荐(0)
摘要:
/* *IE8下,模拟placeholder效果 */ var JPlaceHolder = { //检测 _check: function () { return 'placeholder' in document.createElement('input'); }, //初始化 init: fu 阅读全文
posted @ 2016-11-28 19:52
<张磊>
阅读(146)
评论(0)
推荐(0)
摘要:
//进度条 function jindutiao(inx,ev){ for(var j =0;j<inx.length;j++){ var val_= inx.eq(j).html(); var object1 = ev[0]; var imgLeft = -(val_*44+(val_*10)); 阅读全文
posted @ 2016-11-28 19:51
<张磊>
阅读(179)
评论(0)
推荐(0)
摘要:
if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) { var loadDateTime = new Date(); window.setTimeout(function() { var timeOutDateTime = new Date 阅读全文
posted @ 2016-11-28 19:50
<张磊>
阅读(208)
评论(0)
推荐(0)
摘要:
//兼容性写法 document.onclick = function(ev){ var e = ev||window.event; var x = e.clientX; var y = e.clientY; } var winW=document.body.clientWidth||documen 阅读全文
posted @ 2016-11-28 19:46
<张磊>
阅读(248)
评论(0)
推荐(0)
摘要:
window.onload = function(){ var input = document.getElementById("file_input"); var result,div; if(typeof FileReader==='undefined'){ ... 阅读全文
posted @ 2016-11-28 19:43
<张磊>
阅读(336)
评论(0)
推荐(0)
摘要:
jsonp的实现核心就是利用script标签的跨域能力!动态生成一个script标签,把json的url赋值给script的src属性,然后再把这个script标签插入dom里... 当然类似的封装好的方法还有几种: 需要注意的是getJSON方法的请求地址url需要带上callback=?,因为j 阅读全文
posted @ 2016-11-28 19:30
<张磊>
阅读(106)
评论(0)
推荐(0)

浙公网安备 33010602011771号