上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: function isWeiXin() { var ua = window.navigator.userAgent.toLowerCase(); console.log(ua);//mozilla/5.0 (iphone; cpu iphone os 9_1 like mac os x) apple 阅读全文
posted @ 2021-10-25 09:33 前端搬运工bug 阅读(68) 评论(0) 推荐(0)
摘要: var newWin = window.open('','newwindow','toolbar =no, menubar=no, scrollbars=no, resizeable=no, location=no, status=no'); newWin.document.write(`<body 阅读全文
posted @ 2021-10-14 14:12 前端搬运工bug 阅读(1791) 评论(2) 推荐(1)
摘要: 方法事件获取 /** * jq 获取函数 */ $(window).height() //浏览器时下窗口可视区域高度 $(document).height() //浏览器时下窗口文档的高度 $(document.body).height() //浏览器时下窗口文档body的高度 $(document 阅读全文
posted @ 2021-10-14 09:53 前端搬运工bug 阅读(259) 评论(0) 推荐(0)
摘要: 方法一: /** * * @param {*} name 字符串类型 * @returns 获取 id #+名字 * 获取 class .+名字 */ function $(name){ if(typeof name 'string'){ return 'typeof err' }else{ if( 阅读全文
posted @ 2021-10-14 09:35 前端搬运工bug 阅读(166) 评论(0) 推荐(0)
摘要: Chinese (Simplified) (简体中文) 编辑器中文包 Bracket Pair Colorizer 很好用的,括号区分颜色 Vetur vue代码高亮 Zhihu On VSCodev0.4.0 摸鱼知乎 阅读全文
posted @ 2021-10-13 15:34 前端搬运工bug 阅读(52) 评论(0) 推荐(0)
摘要: ^\s*(?=\r?$)\n 阅读全文
posted @ 2021-10-13 15:28 前端搬运工bug 阅读(44) 评论(0) 推荐(0)
摘要: 名称 编号 描述 &nbsp; &#160; 不断行的空白(1个字符宽度) &ensp; &#8194; 半个空白(1个字符宽度) &emsp; &#8195; 一个空白(2个字符宽度) &thinsp; &#8201; 窄空白(小于1个字符宽度) 阅读全文
posted @ 2021-10-13 15:26 前端搬运工bug 阅读(47) 评论(0) 推荐(0)
摘要: /** * * @param {*} provinces 字符串 注意必须要 '-' 连接 * @returns */ function getChina(provinces){ let newProvinces = provinces.split("-") let a,city; if(newPr 阅读全文
posted @ 2021-10-13 11:22 前端搬运工bug 阅读(156) 评论(0) 推荐(0)
摘要: /** * * @param {*} time 处理的时间 可以自定时间/或当前时间 字符类型 * @returns */ function getTIme(time){ let times = ''; let d = new Date(time); let m = d.getFullYear(); 阅读全文
posted @ 2021-10-13 11:16 前端搬运工bug 阅读(39) 评论(0) 推荐(0)
摘要: /** * 屏蔽选中 */ document.onselectstart = function (event) { if (window.event) { event = window.event; } try { var the = event.srcElement; if (!((the.tag 阅读全文
posted @ 2021-10-13 11:06 前端搬运工bug 阅读(30) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 下一页