上一页 1 ··· 9 10 11 12 13
摘要: function json(){ return { name :"whl", age :30 } } console.log(json()) //结果{name: "whl", age: 30} 阅读全文
posted @ 2018-12-12 14:16 Webwhl 阅读(115) 评论(0) 推荐(0) 编辑
摘要: //小于10前面加0 function add(m){ return m<10 ? "0"+m : m; } function getTime(timestamp) { var time = new Date(timestamp); var year = time.getFullYear(); va 阅读全文
posted @ 2018-12-12 14:09 Webwhl 阅读(218) 评论(0) 推荐(0) 编辑
摘要: function tablenumber() { $.ajax({ type : "get", url : "../res/error.json", dataType : "json", success : function(data){ console.log(data); vm.SuccessN 阅读全文
posted @ 2018-12-12 11:29 Webwhl 阅读(1096) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-12-04 11:45 Webwhl 阅读(6263) 评论(0) 推荐(0) 编辑
摘要: www.fontke.com/tool/fontface https://www.fontke.com/tool/convfont/ 阅读全文
posted @ 2018-09-29 16:57 Webwhl 阅读(227) 评论(0) 推荐(0) 编辑
摘要: var keyWords=location.href.split("?")[1].split("&"); console.log(keyWords) for(var i=0;i<keyWords.length;i++){ var searchkey="";if(keyWords[i].indexOf 阅读全文
posted @ 2018-09-29 16:51 Webwhl 阅读(152) 评论(0) 推荐(0) 编辑
摘要: var oHeight = $(document).height(); //浏览器当前的高度 $(window).resize(function(){ if($(document).height() < oHeight){ $("#footer").css("position","static"); 阅读全文
posted @ 2018-09-29 16:48 Webwhl 阅读(390) 评论(0) 推荐(0) 编辑
摘要: //jq 滚动$(document).ready(function(){ $(window).scroll(function(){ if($(window).scrollTop()>80){ $('.header').addClass('position-f'); $('#replaceImg'). 阅读全文
posted @ 2018-09-29 16:44 Webwhl 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: $("#box").on("click",function(e){ e.stopPropagation(); e.preventDefault(); $("#box").hide();});$("#box")[0].ontouchmove=function(e){ e.stopPropagation 阅读全文
posted @ 2018-09-29 16:39 Webwhl 阅读(251) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13