摘要: 反正就是谷歌干的戳事,那就解决吧. 方法1:禁用 要禁用对 url 的隐藏,可以执行以下步骤: 打开 Chrome 浏览器并在地址栏中输入 chrome://flags/#omnibox-ui-hide-steady-state-url-scheme-and-subdomains,然后按回车Chro 阅读全文
posted @ 2019-08-23 03:00 Forever.Sun 阅读(36) 评论(0) 推荐(0)
摘要: 1、初始化一个新的项目 yarn init 2、添加一个依赖包 yarn add [package]yarn add [package]@[version]yarn add [package]@[tag] 3、安装所有的依赖包 yarn 或者 yarn install 4、npm 与 yarn命令比 阅读全文
posted @ 2019-08-19 06:32 Forever.Sun 阅读(18) 评论(0) 推荐(0)
摘要: 1.属性 <!-- video 不支持 IE8及以下版本浏览器,支持三种视频格式:MP4,WebM 和 Ogg --> <video src="test.mp4" controls width="400" height="300"></video> <!-- 禁止下载 --> <video src= 阅读全文
posted @ 2019-07-02 01:56 Forever.Sun 阅读(24) 评论(0) 推荐(0)
摘要: var canvas = document.createElement('canvas'); var gl = canvas.getContext('webgl'); // 等同于 canvas.getContext('experimental-webgl'); var debugInfo = gl 阅读全文
posted @ 2019-06-20 03:18 Forever.Sun 阅读(37) 评论(0) 推荐(0)
摘要: function getYourIP(){ var RTCPeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection; if (RTCPeerCo 阅读全文
posted @ 2019-06-20 03:10 Forever.Sun 阅读(35) 评论(0) 推荐(0)
摘要: <html> <head> <style type='text/css'> body{font-size:12px;} body table tr td{font-size:12px;} </style> <script> var info = allinfo(); //document.write 阅读全文
posted @ 2019-06-20 03:00 Forever.Sun 阅读(23) 评论(0) 推荐(0)
摘要: 远程支持滚顶元素 document.getElementById("yyy").scrollIntoView() 阅读全文
posted @ 2019-06-18 09:53 Forever.Sun 阅读(20) 评论(0) 推荐(0)
摘要: 1.创建npm账号 2.cmd命令行到某个文件夹下,然后登录 npm login 3.npm init填写包名,以及一些信息 4.通过npm publish发包,然后搜一下看看是不是已经推上去了? 5.这里要说一点,取消发布包可能并不像你想象得那么容易,这种操作是受到诸多限制的,撤销发布的包被认为是 阅读全文
posted @ 2019-03-12 11:09 Forever.Sun 阅读(41) 评论(0) 推荐(0)
摘要: npm-check是用来检查npm依赖包是否有更新,错误以及不在使用的,我们也可以使用npm-check进行包的更新 安装npm-check: npm install -g npm-check 检查npm包的状态: npm-check -u -g 阅读全文
posted @ 2019-02-18 12:06 Forever.Sun 阅读(26) 评论(0) 推荐(0)
摘要: //开启沙箱模式 function run() { var iframeContent = $("#editor").val();//html内容 loadPreview(iframeContent); } //填充预览效果内容 function loadPreview(content) { var 阅读全文
posted @ 2019-02-18 11:59 Forever.Sun 阅读(15) 评论(0) 推荐(0)