摘要:
在iframe中添加属性 allowfullscreen="true" 例:<iframe width="100%" allowfullscreen="true" height="100%" :src="url" frameborder="0"></iframe> 阅读全文
摘要:
angular官方地址:http://www.videogular.com/tutorials/migration-guide-to-videogular-1-0-0/ 首先下载Videogular并添加至项目目录 在index.html引入 在app.js文件的angular.module中注入 阅读全文
摘要:
创建一个全局数组变量用于存储Image对象var images = [];创建Image对象并赋值src,将图片缓存到浏览器function preload() { for (i = 0; i < preload.arguments.length; i++) { images[i] = new Im 阅读全文
摘要:
测试: 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 阅读全文
摘要:
过滤特殊字符function filterSpecialStr(str) { //定义要过滤的字符 var patterns = new RegExp("[`~!@#$%^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?↵\r\n]"); va 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <h1 style="text-align: center;">内容在控制台</h1> </body> <script type=" 阅读全文
摘要:
function EleInsert() { //获取父级DOM,这里通过ID (getElementById) //也可以用 通过name属性 getElementsByName/通过标签名(getElementsByTagName)/通过类名(getElementsByClassName) // 阅读全文
摘要:
ueditor-1.4.3.3 项目需要去掉“上传视频” ueditor\dialogs\video\video.html 输入视频地址报错。 ueditor\ueditor.all.js ‘image’—>’video’ ueditor\ueditor.config.js ① img 添加 ‘_u 阅读全文
摘要:
多柱重叠:barGap:’-100%’(多组数据中只要添加在任意一个组即可)series: [ { name: '直接访问', type: 'bar', barGap:'-100%',//重叠效果(可放在任意一个组中) data: [320, 332, 301, 334, 390, 330, 320 阅读全文