摘要: // 已经存在该tab时跳过 this.tabs.some(item => item.title option.title) || this.tabs.push(option) 阅读全文
posted @ 2017-09-28 17:11 大西瓜的一片净土 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 修改源代码如下 阅读全文
posted @ 2017-09-21 23:20 大西瓜的一片净土 阅读(475) 评论(0) 推荐(0) 编辑
摘要: ```js function stringify(obj, sep, eq) { sep = sep || '&'; eq = eq || '='; let str = ""; for (var k in obj) { str += k + eq + unescape(obj[k]) + sep } 阅读全文
posted @ 2017-09-11 17:53 大西瓜的一片净土 阅读(1946) 评论(0) 推荐(0) 编辑
摘要: ```js //字符串方法indexOf var len = list.length; var arr = []; for(var i=0;i=0){ arr.push(list[i]); } } return arr; //正则表达式 var len = list.length; var arr 阅读全文
posted @ 2017-07-31 20:21 大西瓜的一片净土 阅读(922) 评论(0) 推荐(0) 编辑
摘要: js 阅读全文
posted @ 2017-07-24 16:40 大西瓜的一片净土 阅读(588) 评论(0) 推荐(0) 编辑
摘要: var url_array = document.location.pathname.split("/"); s1 = url_array[1]; s2 = url_array[2]; if (s1 == ''){ $(' index').addClass('active') } else { $( 阅读全文
posted @ 2017-06-21 10:49 大西瓜的一片净土 阅读(195) 评论(0) 推荐(0) 编辑
摘要: ie8下加载后的显示 点击之后的显示 主要是li标签宽度auto引起的,可以设置li标签的最小宽度 <! 一级标题 <! 二级标题 阅读全文
posted @ 2017-06-20 17:47 大西瓜的一片净土 阅读(228) 评论(0) 推荐(0) 编辑
摘要: ```js var browser=navigator.appName var b_version=navigator.appVersion var version=b_version.split(";"); var trim_Version=version[1].replace(/[ ]/g,""); if(browser=="Microsoft Internet Explorer" &... 阅读全文
posted @ 2017-06-20 17:27 大西瓜的一片净土 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 搭建服务器 阅读全文
posted @ 2017-04-20 09:36 大西瓜的一片净土 阅读(227) 评论(0) 推荐(0) 编辑