摘要: 转自 https://www.cnblogs.com/riokai/p/4452088.html Sublime添加TypeScript编译功能的方式是:打开Sublime Text -> Tools(工具) -> Build System(编译系统) -> New Build System(新编译 阅读全文
posted @ 2020-07-31 17:13 justsilky 阅读(189) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/8300a5ec6480 阅读全文
posted @ 2020-07-23 14:32 justsilky 阅读(164) 评论(0) 推荐(0) 编辑
摘要: // 禁止保存,拖拽图片 var imgs = $("img"); imgs.on("contextmenu", function() { return false; }); imgs.on("dragstart", function() { return false; }); // 禁止非开发人员 阅读全文
posted @ 2020-07-22 18:16 justsilky 阅读(268) 评论(0) 推荐(0) 编辑
摘要: http://www.clipboardjs.cn/ 阅读全文
posted @ 2020-07-20 13:50 justsilky 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 原博 https://www.cnblogs.com/IT-study/p/11169501.html 阅读全文
posted @ 2020-06-30 14:33 justsilky 阅读(1511) 评论(0) 推荐(0) 编辑
摘要: 原文 https://www.cnblogs.com/woaixuexi9999/p/9247705.html 阅读全文
posted @ 2020-06-09 13:54 justsilky 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/yugege/p/6526215.html#!comments function getRareChar(str) { let hash = {}; // 将各个字符名字、首次出现位置及出现次数存到hash表 for(let i = 0, len 阅读全文
posted @ 2020-05-21 14:09 justsilky 阅读(650) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/embrace-ly/p/10693035.html 方法一:递归 let cloneObj = function(obj){ let str, newobj = obj.constructor Array ? [] : {}; if(typeo 阅读全文
posted @ 2020-05-20 18:04 justsilky 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.zreading.cn/ican/2014/10/css-font-family/ 例1(小米米官网):font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif; 例2(淘宝技术研发中心):font: 12px/ 阅读全文
posted @ 2020-04-22 15:58 justsilky 阅读(402) 评论(0) 推荐(0) 编辑
摘要: http://via.placeholder.com/500x200 阅读全文
posted @ 2020-03-30 14:27 justsilky 阅读(85) 评论(0) 推荐(0) 编辑