摘要: angular官方地址:http://www.videogular.com/tutorials/migration-guide-to-videogular-1-0-0/ 首先下载Videogular并添加至项目目录 在index.html引入 在app.js文件的angular.module中注入 阅读全文
posted @ 2021-05-07 16:34 存在过? 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 创建一个全局数组变量用于存储Image对象var images = [];创建Image对象并赋值src,将图片缓存到浏览器function preload() { for (i = 0; i < preload.arguments.length; i++) { images[i] = new Im 阅读全文
posted @ 2021-04-22 09:27 存在过? 阅读(1424) 评论(0) 推荐(0) 编辑
摘要: 测试: var obj = {qwe:123,asd:456}; var obj1 = obj,obj2 = clone(obj); obj1.qwe = 456; obj2.asd = 'asdzxc'; console.log(obj);//{qwe: 456, asd: 456} consol 阅读全文
posted @ 2021-04-14 15:58 存在过? 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 过滤特殊字符function filterSpecialStr(str) { //定义要过滤的字符 var patterns = new RegExp("[`~!@#$%^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?↵\r\n]"); va 阅读全文
posted @ 2021-04-14 09:43 存在过? 阅读(507) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <h1 style="text-align: center;">内容在控制台</h1> </body> <script type=" 阅读全文
posted @ 2021-04-12 12:03 存在过? 阅读(132) 评论(0) 推荐(0) 编辑
摘要: function EleInsert() { //获取父级DOM,这里通过ID (getElementById) //也可以用 通过name属性 getElementsByName/通过标签名(getElementsByTagName)/通过类名(getElementsByClassName) // 阅读全文
posted @ 2021-04-07 17:41 存在过? 阅读(231) 评论(0) 推荐(0) 编辑
摘要: ueditor-1.4.3.3 项目需要去掉“上传视频” ueditor\dialogs\video\video.html 输入视频地址报错。 ueditor\ueditor.all.js ‘image’—>’video’ ueditor\ueditor.config.js ① img 添加 ‘_u 阅读全文
posted @ 2021-03-03 15:06 存在过? 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 多柱重叠:barGap:’-100%’(多组数据中只要添加在任意一个组即可)series: [ { name: '直接访问', type: 'bar', barGap:'-100%',//重叠效果(可放在任意一个组中) data: [320, 332, 301, 334, 390, 330, 320 阅读全文
posted @ 2021-01-13 19:10 存在过? 阅读(13004) 评论(1) 推荐(2) 编辑
摘要: js<div onselectstart="return false;">测试文本,支持IE/Safari</div>css.no-selection{ -webkit-user-select: none; /*webkit浏览器*/ -moz-user-select: none; /*火狐*/ - 阅读全文
posted @ 2020-12-28 12:10 存在过? 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 在angular项目中,若动态添加的html代码段中含有angular指令,angular指令不能应用成功。解决办法: html<div id="HtmlBox"></div><button ng-click=”addHtmlPart()”>添加代码段</button> js ($compile 需 阅读全文
posted @ 2020-12-28 10:43 存在过? 阅读(488) 评论(0) 推荐(0) 编辑