2019年6月6日

如果微信H5页面转发分享后标题及内容、链接不是自己自定义的内容,及logo https兼容性问题如下解决方法

摘要: // imgUrl: window.location.protocol + '//' + window.location.host + '/nviews/mobile/images/amlogo.jpg',(解决https logo不显示问题) 注意: 1、页面引入:<script src="htt 阅读全文

posted @ 2019-06-06 16:38 奔驰的码儿 阅读(941) 评论(0) 推荐(0)

如何获取地址栏中的链接URL参数

摘要: 1 //第一种获取链接上带的值 2 function getQueryString(name) { 3 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 4 var r = window.location.search.substr(1).match(reg); 5 if (r != nu... 阅读全文

posted @ 2019-06-06 16:25 奔驰的码儿 阅读(403) 评论(0) 推荐(0)

检测关闭浏览器、浏览器的返回按钮、关闭微信页面

摘要: 1 //检测浏览器关闭 2 window.onbeforeunload = function () { 3 console.log("确定离开吗") 4 return main.getApi();//调用相关需求 5 6 }; 7 $(function(){ 8 pushHistory();... 阅读全文

posted @ 2019-06-06 16:15 奔驰的码儿 阅读(284) 评论(0) 推荐(0)

2019年6月3日

h5 video 无法控制 采取方式

摘要: <video id="js-video" width="100%" controls="controls" x5-video-player-type="h5" x5-video-player-fullscreen="true" x5-video-orientation="portraint" pos 阅读全文

posted @ 2019-06-03 20:10 奔驰的码儿 阅读(183) 评论(0) 推荐(0)

2019年4月12日

vscode 插件集

摘要: 1 插件列表 2 3 名称 简述 4 Auto Close Tag 自动闭合HTML标签 5 Auto Import Typescript自动import提示 6 Auto Rename Tag 修改HTML标签时,自动修改匹配的标签 7 Beautify css/sass/scss/less cs 阅读全文

posted @ 2019-04-12 10:20 奔驰的码儿 阅读(196) 评论(0) 推荐(0)

2019年4月4日

js的向上取整(Math.ceil)向下取整(Math.floor)四舍五入(Math.round)

摘要: <script language="javascript"> Math.floor(5.55) //向下取整 结果为5 Math.floor(5.99) //向下取整 结果为5 Math.ceil(5.21) //向上取整,结果为6 Math.ceil(5.88) //向上取整,结果为6 Math. 阅读全文

posted @ 2019-04-04 11:50 奔驰的码儿 阅读(562) 评论(0) 推荐(0)

2019年3月7日

git 简单操作教程

摘要: 第一章 初始化一个Git仓库,使用git init命令。 添加文件到Git仓库,分两步: 第二章 要随时掌握工作区的状态,使用git status命令。 如果git status告诉你有文件被修改过,用git diff可以查看修改内容。 要随时掌握工作区的状态,使用git status命令。 如果g 阅读全文

posted @ 2019-03-07 23:49 奔驰的码儿 阅读(217) 评论(0) 推荐(0)

导航