上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 来自:https://blog.csdn.net/u013239236/article/details/52213977 侵删 <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; char 阅读全文
posted @ 2018-11-13 09:34 abcByme 阅读(2882) 评论(0) 推荐(1)
摘要: Object.keys 返回一个所有元素为字符串的数组,其元素来自于从给定的object上面可直接枚举的属性。这些属性的顺序与手动遍历该对象属性时的一致。 // 表单清空 Object.keys(this.formValue).forEach((key) => { this.formValue[ke 阅读全文
posted @ 2018-11-08 09:20 abcByme 阅读(655) 评论(0) 推荐(0)
摘要: 组件中: getTypes('EP_TYPE').then((data) => {console.log('data',data)});//成功 阅读全文
posted @ 2018-11-07 16:48 abcByme 阅读(2511) 评论(0) 推荐(0)
摘要: 来自:https://www.linuxidc.com/Linux/2012-04/58985.htm 侵删 当要push代码到git时,出现提示: error:failed to push some refs to ... Dealing with “non-fast-forward” error 阅读全文
posted @ 2018-11-02 11:12 abcByme 阅读(531) 评论(0) 推荐(0)
摘要: 1.安装jquery npm install jquery --save-dev 2.打开配置文件webpack.base.conf.js 加入'jquery': path.resolve(__dirname, '../node_modules/jquery/src/jquery') //引入jqu 阅读全文
posted @ 2018-11-02 11:05 abcByme 阅读(543) 评论(0) 推荐(1)
摘要: 解决方案 可以安装整个stage2的预置器或者安装 Object Rest Operator 的babel插件 babel-plugin-transform-object-rest-spread 。 接着在babel的配置文件 .babelrc 中应用插件: { "presets": [ ["es2 阅读全文
posted @ 2018-10-19 20:46 abcByme 阅读(708) 评论(0) 推荐(0)
摘要: 调用- let obj = [{"name": "1","url": "1u"}, {"name": "1","url": "1r"}, {"name": "2","url": "1u"},{ "name": "1", "url": "1u" }]; console.l 阅读全文
posted @ 2018-10-18 15:41 abcByme 阅读(4250) 评论(0) 推荐(0)
摘要: 解决办法:在根目录新建postcss.config.js 阅读全文
posted @ 2018-10-17 20:09 abcByme 阅读(518) 评论(0) 推荐(0)
摘要: 删除 阅读全文
posted @ 2018-10-11 16:58 abcByme 阅读(1296) 评论(0) 推荐(0)
摘要: //es6语法export function debounce(func, delay) { let timer //返回一个函数,并拿到参数 return function (...args) { if (timer) { clearTimeout(timer) } timer = setTimeout(() => { func.ap... 阅读全文
posted @ 2018-09-28 16:37 abcByme 阅读(458) 评论(0) 推荐(0)
摘要: 在 webpack.dev.config.js中 在请求金封装的接口中 阅读全文
posted @ 2018-09-22 20:26 abcByme 阅读(1466) 评论(0) 推荐(0)
摘要: //先定义一个某数值范围内的随机数 // 克隆数组方法 //洗牌 //调用 阅读全文
posted @ 2018-09-12 10:43 abcByme 阅读(1240) 评论(0) 推荐(0)
摘要: function format(interval){ if (!value) return '' let interval = Math.floor(value) let minute = (Math.floor(interval / 60)).toString().padStart(2, '0') 阅读全文
posted @ 2018-09-11 10:07 abcByme 阅读(1326) 评论(0) 推荐(0)
摘要: 来自:https://blog.csdn.net/qq_35430000/article/details/79412664#commentBox github仓库地址:https://github.com/byla678/vuexdemo.git 侵删 阅读全文
posted @ 2018-09-09 21:31 abcByme 阅读(595) 评论(0) 推荐(0)
摘要: //调用 const transform = prefixStyle('transform') const backdrop = prefixStyle('backdrop-filter') div.style[transform] = `translate3d(0,0,0)` 等同于 div.st 阅读全文
posted @ 2018-09-07 15:51 abcByme 阅读(1125) 评论(0) 推荐(0)
摘要: 来自:https://blog.csdn.net/wd4java/article/details/50466633 侵删 以下我们将为大家介绍 JavaScript 保留两位小数的实现方法:四舍五入以下处理结果会四舍五入: ? 1 2 var num =2.446242342; num = num. 阅读全文
posted @ 2018-09-06 09:51 abcByme 阅读(16849) 评论(0) 推荐(1)
摘要: 来自 https://www.cnblogs.com/lhl66/p/9555903.html 侵删 来自 https://www.cnblogs.com/lhl66/p/8862106.html 侵删 1. let, const 都是块级作用域, 其有效范围仅在代码块中。 //es5 if (a == 1) { var b = 'xxx'; } console.log(b); ... 阅读全文
posted @ 2018-09-05 16:20 abcByme 阅读(1298) 评论(0) 推荐(0)
摘要: 针对常用的http请求方式 get(url, [data], [options]); post(url, [data], [options]); put(url, [data], [options]); delete(url, [data], [options]); jsonp(url, [data 阅读全文
posted @ 2018-09-05 16:11 abcByme 阅读(655) 评论(0) 推荐(0)
摘要: //来自 https://www.cnblogs.com/lhl66/p/8021730.html 侵删el:element 需要获取的元素,一定是HTML中的根容器元素 data:用于数据的存储 methods:用于存储各种方法 数据绑定字面量只加载一次{{* msg}} data里面可以进行简单 阅读全文
posted @ 2018-09-05 16:05 abcByme 阅读(7372) 评论(0) 推荐(0)
摘要: 来自:https://blog.csdn.net/qq_37120738/article/details/79086706 侵删 slice() 定义和用法 slice() 方法可从已有的数组中返回选定的元素。 string.slice(start, end)提取一个字符串 string.subst 阅读全文
posted @ 2018-09-03 09:46 abcByme 阅读(5669) 评论(0) 推荐(2)
摘要: 来自:http://www.cnblogs.com/fangshidaima/p/5910604.html 侵删 forEach是ES5中操作数组的一种方法,主要功能是遍历数组,例如: 1 2 var arr = [1,2,3,4]; arr.forEach(alert); 1 2 var arr 阅读全文
posted @ 2018-08-31 14:21 abcByme 阅读(810) 评论(0) 推荐(0)
摘要: 旧版本中:dev-server.js 这段去掉 在 新的 webpack.dev.config.js 中 添加 阅读全文
posted @ 2018-08-30 18:04 abcByme 阅读(1153) 评论(0) 推荐(0)
摘要: addClass(元素, 'item-类名') 阅读全文
posted @ 2018-08-30 09:18 abcByme 阅读(3447) 评论(0) 推荐(1)
摘要: import originJsonp from 'jsonp' export default function jsonp(url, data, option) { url += (url.indexOf('?') { originJsonp(url, option, (err, data) => { if (!err) { resolve(data)... 阅读全文
posted @ 2018-08-29 15:47 abcByme 阅读(398) 评论(0) 推荐(0)
摘要: if (window["context"] == undefined) { if (!window.location.origin) { window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + wi... 阅读全文
posted @ 2018-08-22 16:56 abcByme 阅读(732) 评论(0) 推荐(0)
摘要: onNodeCreated 回调,捕获 DOM 创建完毕的回调,然后利用 zTree 的规则找到 treeNode.tId + "_a" 这样的 标签,自行添加 class 就是了 阅读全文
posted @ 2018-08-15 16:14 abcByme 阅读(2616) 评论(0) 推荐(0)
摘要: 来自:https://blog.csdn.net/wd4871/article/details/50517597 侵删 父页面中的iframe :如下 <iframe name="sunPage" id="sunPage" src="sun.html" width="300px" height="a 阅读全文
posted @ 2018-08-14 15:59 abcByme 阅读(9087) 评论(0) 推荐(1)
摘要: //颜色16进制转RGB方法 String.prototype.colorRgb = function(){ var sColor = this.toLowerCase(); //十六进制颜色值的正则表达式 var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/ 阅读全文
posted @ 2018-08-10 16:12 abcByme 阅读(4912) 评论(0) 推荐(0)
摘要: var shine=0.8; var arrays = ['[255,182,193,0.8]','[144,238,144,0.8]','[255,235,205,0.8]','[240,128,128,0.8]','[255,186,0,0.8]','[255,225,189,0.8]','[227,229,241,0.8]','[248,228,239,0.8]','[223,237,2... 阅读全文
posted @ 2018-08-10 16:11 abcByme 阅读(1067) 评论(1) 推荐(1)
摘要: obj =["34", "3", "34#add"] 数组,id 与树形的所有id 一致 阅读全文
posted @ 2018-08-10 10:18 abcByme 阅读(872) 评论(0) 推荐(0)
摘要: https://www.zhangxinxu.com/wordpress/2017/07/js-text-string-download-as-html-json-file/ 侵删 1.H5 download属性 downFile(下载地址, 保存名称); 2.iframe方式 3.form方式 阅读全文
posted @ 2018-07-13 16:12 abcByme 阅读(20690) 评论(5) 推荐(1)
摘要: .select2-container--open{ z-index: 99999;} 阅读全文
posted @ 2018-07-09 09:29 abcByme 阅读(708) 评论(0) 推荐(0)
摘要: var tree = [ { name: 'node1' }, { name: 'node2', children: [{ name: 'node-2-1' }, { name: 'node2-2' }] }, { name: 'node3', children: [{ name: 'node-3-1', children: [{ name: 'node3-1-1' }]... 阅读全文
posted @ 2018-06-28 18:37 abcByme 阅读(3834) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-06-07 19:17 abcByme 阅读(9428) 评论(4) 推荐(0)
摘要: .div-title p label{ text-align: justify; width: 18%; display: inline-block; text-align-last: justify; text-justify:inter-ideograph; vertical-align: top... 阅读全文
posted @ 2018-06-04 16:53 abcByme 阅读(791) 评论(0) 推荐(0)
摘要: function loadIframe(url) { //获取url链接 var u = window.location.href; //因为每次获取的链接中都有之前的旧锚点, //所以需要把#之后的旧锚点去掉再来加新的锚点(即传入的url参数) var end = u.indexOf("#"); var rurl = u.substring(0,... 阅读全文
posted @ 2018-05-25 10:46 abcByme 阅读(605) 评论(0) 推荐(0)
摘要: <input type="file" onchange="angular.element(this).scope().addPhoto(this,event)" accept="image/*" id="carPhotoFile"> 在js 的成功回调函数中 $scope.addPhoto = fu 阅读全文
posted @ 2018-05-25 10:05 abcByme 阅读(1542) 评论(0) 推荐(1)
摘要: 转自:http://www.jb51.net/article/71615.htm 侵删 Document --> 阅读全文
posted @ 2018-05-11 21:54 abcByme 阅读(834) 评论(1) 推荐(0)
摘要: 图片预览 图片预览 --> 阅读全文
posted @ 2018-04-25 18:23 abcByme 阅读(1404) 评论(0) 推荐(0)
摘要: html: <div class="col-md-4 col-sm-4"> <div class="portlet light bordered"> <div class="portlet-title"> <div class="caption">合同附件</div> <div class="add 阅读全文
posted @ 2018-04-25 11:23 abcByme 阅读(580) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页