上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页
摘要: Array.prototype.remove = function(val) { var index = this.indexOf(val); if(index > -1) { this.splice(index, 1); } }; var arr = ['1','2','3']; arr.remo 阅读全文
posted @ 2017-11-01 15:43 mrt_yy 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 在iis7中默认的mime类型并不包含所有的后缀名文件,像现在比较热门的apk,ipa文件都是需要手动添加的。至于添加的方法百度一下大家就都知道到了,这里小编要说的是,如果你的iis7中有很多个网站都需要设置mime类型,然后每个都要设置一遍apk,ipa,3gp等这样的后缀名的话,会觉的有点繁琐, 阅读全文
posted @ 2017-10-09 21:58 mrt_yy 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 通过 JavaScript 判断 通过 PHP 判断 阅读全文
posted @ 2017-09-29 21:19 mrt_yy 阅读(143) 评论(0) 推荐(0) 编辑
摘要: var reg = new RegExp("^北京|\\|北京"); 字符串“北京”整体 console.log(reg2.test("北京南|beijingnan|bjn")) //var reg = new RegExp("^北京|\\|北京", 'gi' ); 全局不区分大小写 g全局 i不区 阅读全文
posted @ 2017-09-20 13:50 mrt_yy 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 引入模版文件 引入/template/default目录下inc_head.html的写法 inc_head对应/template/default目录下inc_head.html模板文件 {mytemplate inc_head} 引入当前模板目录下的inc_head.html inc_head对应 阅读全文
posted @ 2017-08-29 13:33 mrt_yy 阅读(1143) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> li { width: 100%; float: left; } li:first-child:nth-last-child(2), li:first-child:nth-last-child(2)~li,li:first-child:nth-last 阅读全文
posted @ 2017-08-24 14:19 mrt_yy 阅读(153) 评论(0) 推荐(0) 编辑
摘要: function removeAllSpace(str) { return str.replace(/\s+/g, ""); } 阅读全文
posted @ 2016-12-08 14:12 mrt_yy 阅读(33713) 评论(0) 推荐(3) 编辑
摘要: <script type="text/javascript"> var u = navigator.userAgent; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 var isiOS 阅读全文
posted @ 2016-11-25 11:19 mrt_yy 阅读(159) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> New Document </title> <me 阅读全文
posted @ 2016-11-02 10:05 mrt_yy 阅读(181) 评论(0) 推荐(0) 编辑
摘要: var ele = document.elementFromPoint(touch.pageX, touch.pageY); //根据坐标直接返回元素document.elementFromPoint() eg: $("ul li").on("touchmove touchstart", funct 阅读全文
posted @ 2016-10-10 16:16 mrt_yy 阅读(2420) 评论(0) 推荐(1) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页