上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: //来自 https://www.cnblogs.com/lhl66/p/8021730.html 侵删el:element 需要获取的元素,一定是HTML中的根容器元素 data:用于数据的存储 methods:用于存储各种方法 数据绑定字面量只加载一次{{* msg}} data里面可以进行简单 阅读全文
posted @ 2018-09-05 16:05 abcByme 阅读(7321) 评论(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 阅读(5643) 评论(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 阅读(800) 评论(0) 推荐(0) 编辑
摘要: 旧版本中:dev-server.js 这段去掉 在 新的 webpack.dev.config.js 中 添加 阅读全文
posted @ 2018-08-30 18:04 abcByme 阅读(1134) 评论(0) 推荐(0) 编辑
摘要: addClass(元素, 'item-类名') 阅读全文
posted @ 2018-08-30 09:18 abcByme 阅读(3421) 评论(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 阅读(388) 评论(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 阅读(722) 评论(0) 推荐(0) 编辑
摘要: onNodeCreated 回调,捕获 DOM 创建完毕的回调,然后利用 zTree 的规则找到 treeNode.tId + "_a" 这样的 标签,自行添加 class 就是了 阅读全文
posted @ 2018-08-15 16:14 abcByme 阅读(2581) 评论(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 阅读(8976) 评论(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 阅读(4889) 评论(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 阅读(1055) 评论(1) 推荐(1) 编辑
摘要: obj =["34", "3", "34#add"] 数组,id 与树形的所有id 一致 阅读全文
posted @ 2018-08-10 10:18 abcByme 阅读(863) 评论(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 阅读(20621) 评论(4) 推荐(1) 编辑
摘要: .select2-container--open{ z-index: 99999;} 阅读全文
posted @ 2018-07-09 09:29 abcByme 阅读(696) 评论(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 阅读(3812) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-06-07 19:17 abcByme 阅读(9328) 评论(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 阅读(779) 评论(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 阅读(594) 评论(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 阅读(1518) 评论(0) 推荐(1) 编辑
摘要: 转自:http://www.jb51.net/article/71615.htm 侵删 Document --> 阅读全文
posted @ 2018-05-11 21:54 abcByme 阅读(821) 评论(1) 推荐(0) 编辑
摘要: 图片预览 图片预览 --> 阅读全文
posted @ 2018-04-25 18:23 abcByme 阅读(1345) 评论(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 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 主要是要引用$compile方法 阅读全文
posted @ 2018-04-24 16:38 abcByme 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 图片上传 /static/img/H5_addPhoto.png" alt="picture"> /*图片上传*/ .photo - box { padding: 10 px; display: inline - block; } ... 阅读全文
posted @ 2018-04-24 14:28 abcByme 阅读(1755) 评论(3) 推荐(0) 编辑
摘要: $scope.yearList = [ {k : "2014", v : "2014"}, {k : "2015", v : "2015"}, {k : "2016", v : "2016"}, {k : "2017", v : "2017"}, ... 阅读全文
posted @ 2018-04-19 18:49 abcByme 阅读(1178) 评论(0) 推荐(0) 编辑
摘要: 默认为今年 var date = new Date; $scope.year = date.getFullYear(); //年份减 $scope.yearPrev = function(){ $scope.year -- ; ... 阅读全文
posted @ 2018-04-19 17:26 abcByme 阅读(1391) 评论(1) 推荐(0) 编辑
摘要: var arr = [ {a:1,b:2,c:3}, {a:4,b:5,c:6}, {a:7,b:8,c:9} ]; arr1=[]; arr.forEach(function(v){ arr1.push(v.a);}); console.log(arr1); 阅读全文
posted @ 2018-04-19 15:46 abcByme 阅读(12484) 评论(0) 推荐(0) 编辑
摘要: 来自:https://www.cnblogs.com/zhuzhenwei918/p/6892066.html 侵删 使用vue-cli搭建的环境,在配置好路由之后,可以看到下面的情况: 但是不难发现#的出现真的很丑陋,并且也不知道这是什么作用? 所以就去Stack Overflow上搜索了,果然还 阅读全文
posted @ 2018-04-09 17:29 abcByme 阅读(911) 评论(0) 推荐(0) 编辑
摘要: l转自:https://blog.csdn.net/klo220/article/details/53331229 侵删 出现这个问题是因为input的type是file,这时如果用ng-change="()"是无效的。 解决方法:用onchange事件。 html <input onchange= 阅读全文
posted @ 2018-04-03 15:56 abcByme 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.jb51.net/article/117191.htm 侵删 css 部分 js 部分 调用 阅读全文
posted @ 2018-03-29 16:00 abcByme 阅读(536) 评论(0) 推荐(0) 编辑
摘要: function returnFloat(value) { var value = Math.round(parseFloat(value) * 100) / 100; var xsd = value.toString().split("."); if (xsd.length == 1) { val 阅读全文
posted @ 2018-03-28 11:36 abcByme 阅读(815) 评论(2) 推荐(0) 编辑
摘要: 来自:http://demo.doyoe.com/css3/justify/justify-form.htm 侵删 <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8" /> <title>表单标签两端对齐效果</title 阅读全文
posted @ 2018-03-27 11:25 abcByme 阅读(850) 评论(0) 推荐(0) 编辑
摘要: 账单打印 Ι 收据打印 返回账单列表 打印 ... 阅读全文
posted @ 2018-03-22 19:31 abcByme 阅读(1269) 评论(0) 推荐(0) 编辑
摘要: function smalltoBIG(n) { var fraction = ['角', '分']; var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; var unit = [ ['元', '万', '亿'... 阅读全文
posted @ 2018-03-22 18:21 abcByme 阅读(1382) 评论(0) 推荐(0) 编辑
摘要: function getYourString(s) { var res = ''; var length = s.length; for (var i = 0, j = 1; i '; } else { res += s[i]; } } ... 阅读全文
posted @ 2018-03-22 18:03 abcByme 阅读(2127) 评论(0) 推荐(0) 编辑
摘要: 转载:http://blog.csdn.net/sushauai/article/details/52958162 侵删 转载:http://blog.csdn.net/sushauai/article/details/52958162 侵删 转载:http://blog.csdn.net/sush 阅读全文
posted @ 2018-03-22 14:43 abcByme 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/e0yu/p/7219930.html?utm_source=itdadao&utm_medium=referral#undefined 使用 angular JS 的时候,把 angularJS 放到文件底部,在渲染页面的时候,会出现闪一下的情 阅读全文
posted @ 2018-03-21 18:02 abcByme 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 账单打印 Ι 收据打印 返回账单列表 打印 ... 阅读全文
posted @ 2018-03-16 09:54 abcByme 阅读(1125) 评论(0) 推荐(0) 编辑
摘要: npm install -g cnpm --registry=https://registry.npm.taobao.org 阅读全文
posted @ 2018-03-13 19:10 abcByme 阅读(367) 评论(0) 推荐(1) 编辑
摘要: //调用 var a = { "aa":11, "bb":22 } objToArray(a) // [0:11,1:22] 阅读全文
posted @ 2018-03-08 18:21 abcByme 阅读(13026) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页