摘要: vscode: Visual Studio Code 常用快捷键 转载https://www.cnblogs.com/bindong/p/6045957.html 原文章地址: vscode: Visual Studio Code 常用快捷键 官方快捷键说明:Key Bindings for Vis 阅读全文
posted @ 2020-09-09 20:16 红尘游 阅读(578) 评论(0) 推荐(0) 编辑
摘要: //分支 https://www.cnblogs.com/hess/p/11947773.html https://www.cnblogs.com/warmlight/p/11075644.html 阅读全文
posted @ 2020-09-07 10:30 红尘游 阅读(73) 评论(0) 推荐(0) 编辑
摘要: //超出字符省略 function cutString(str, len) { //要求字符串长度大于实际字符长度 直接返回 if(str.length*2 <= len) { return str; } var strlen = 0; var s = ""; for(var i = 0;i < s 阅读全文
posted @ 2019-05-07 16:09 红尘游 阅读(225) 评论(0) 推荐(0) 编辑
摘要: function color(){ //16进制随机数生成 颜色值 var r = Math.floor(Math.random() * 256); var g = Math.floor(Math.random() * 256); var b = Math.floor(Math.random() * 阅读全文
posted @ 2019-05-07 16:07 红尘游 阅读(1972) 评论(0) 推荐(0) 编辑
摘要: //执行概率 function getResult(arr=[2,5,8,10,12,18,20,25]){ var leng = 0; for(var i=0; i<arr.length; i++){ leng+=arr[i]; //获取总数 } for(var i=0; i<arr.length 阅读全文
posted @ 2019-05-07 16:05 红尘游 阅读(224) 评论(0) 推荐(0) 编辑
摘要: var str:String = “100/200/300”; var index:int =str.indexOf("/"); var str1:String =str.substring(0,index) //最开始到第一个/的字符: console.log(str1+"最开始到第一个/的字符" 阅读全文
posted @ 2018-07-09 13:26 红尘游 阅读(2297) 评论(0) 推荐(0) 编辑
摘要: WIn 占满一屏,但不能设置大小, Frame 可以 一般情况 Frame 依附于win 之上,关了window 通过window打开的frame 也会关闭。 阅读全文
posted @ 2017-11-16 15:26 红尘游 阅读(940) 评论(0) 推荐(0) 编辑
摘要: 很简单 ,在html 执行事件所在的div中 设置 position:relative; 阅读全文
posted @ 2017-10-26 19:47 红尘游 阅读(572) 评论(0) 推荐(0) 编辑