上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: //分页下拉 var ajaxScroll = function() { var screenHeight = window.screen.height; $(document).scroll(function() { if (screenHeight + document.body.scrollTop >= document.body.scrollHeight)... 阅读全文
posted @ 2018-03-08 13:30 abcByme 阅读(586) 评论(0) 推荐(0) 编辑
摘要: //调用,description为class名wordlimit('description', 30) 阅读全文
posted @ 2018-03-08 09:33 abcByme 阅读(5202) 评论(3) 推荐(0) 编辑
摘要: ajax 请求数据的时候 var jz_roomId = $('#jz_roomId');$(jz_roomId).select2({ dropdownParent: $(".customerRoomIdModal"), ajax: { url: webroot + '/spaceRoom/list 阅读全文
posted @ 2018-02-28 19:42 abcByme 阅读(2482) 评论(0) 推荐(0) 编辑
摘要: <select class="form-group form-control" name="roomId" id="roomList" data-op="eq" data-type="L" title="请选择租赁空间"> <option value="">全部</option> </select> 阅读全文
posted @ 2018-02-09 18:15 abcByme 阅读(1899) 评论(4) 推荐(0) 编辑
摘要: function roomIds(roomid) { // var str = roomid.replace(/;/g,'\r\n'); if (roomid) { var str = roomid.replace(/;/g, ''); return str; } else { return '暂无'; } } 阅读全文
posted @ 2018-02-02 15:05 abcByme 阅读(734) 评论(0) 推荐(0) 编辑
摘要: .cont-detail ul li { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -webkit-justify-content: space-between; ... 阅读全文
posted @ 2018-01-30 09:39 abcByme 阅读(366) 评论(1) 推荐(0) 编辑
摘要: CSS3时钟 css 始终效果演示 ... 阅读全文
posted @ 2018-01-22 21:52 abcByme 阅读(388) 评论(0) 推荐(0) 编辑
摘要: function toDecimal2(x) { var f = parseFloat(x); if (isNaN(f)) { return false; } var f = Math.round(x*100)/100; var s = f.toString(); var rs = s.indexOf('.'); if (r... 阅读全文
posted @ 2018-01-19 11:14 abcByme 阅读(2148) 评论(0) 推荐(0) 编辑
摘要: function getobjArr (data) { var result = []; data.HELMET.system = '系统分类' // console.log(data) $.each(data.HELMET, function (index_h, e... 阅读全文
posted @ 2018-01-12 13:01 abcByme 阅读(3337) 评论(0) 推荐(0) 编辑
摘要: var arrsAll = ['1','1','1']; console.log('isAllEqual',isAllEqual(arrsAll)); //true 阅读全文
posted @ 2018-01-12 12:27 abcByme 阅读(3773) 评论(0) 推荐(0) 编辑
摘要: var ary = new Array("111", "22", "33", "111"); console.log(arrHasvalue(ary)); //true 阅读全文
posted @ 2018-01-11 22:48 abcByme 阅读(1857) 评论(3) 推荐(0) 编辑
摘要: var arrs = ['1','2','3']; console.log(arrHasValue(1,arrs)); //true 阅读全文
posted @ 2018-01-11 22:25 abcByme 阅读(2572) 评论(0) 推荐(0) 编辑
摘要: //金额处理 var number = 1234567.35; if (parseInt(number) == number) { var money = number.toString().split(''); var unit = money[money.length - 1]; var decade = money[m... 阅读全文
posted @ 2018-01-11 14:44 abcByme 阅读(724) 评论(0) 推荐(0) 编辑
摘要: console.log('fmoney',fmoney(100.12243, 2)) //100.12 阅读全文
posted @ 2018-01-11 14:29 abcByme 阅读(671) 评论(0) 推荐(0) 编辑
摘要: console.log('obj',obj) 阅读全文
posted @ 2018-01-11 14:23 abcByme 阅读(10869) 评论(0) 推荐(0) 编辑
摘要: console.log(smalltoBIG(43533534.78)); 阅读全文
posted @ 2018-01-11 13:03 abcByme 阅读(1242) 评论(0) 推荐(0) 编辑
摘要: 来自:SangSir 链接:https://segmentfault.com/a/1190000012673854 原文:https://www.sitepoint.com/shorthand-javascript-techniques/ 1.三元操作符 当想写 if...else 语句时,使用三元 阅读全文
posted @ 2018-01-10 14:24 abcByme 阅读(2036) 评论(0) 推荐(1) 编辑
摘要: Document 1.时间都去哪儿了 2.海阔天空 3.真的爱你 ... 阅读全文
posted @ 2018-01-10 13:04 abcByme 阅读(331) 评论(0) 推荐(0) 编辑
摘要: ajaxJson('POST', url, JSON.stringify(param), function(err, result){ //result or rsp // if(SUCCESS){ //....... }else{ //....... } }); ————————————————— 阅读全文
posted @ 2018-01-04 10:14 abcByme 阅读(1176) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/chiname/articles/216517.html(侵删) /* * 方法:Array.removeAt(Index) * 功能:删除数组元素. * 参数:Index删除元素的下标. * 返回:在原数组上修改数组 */ /* * 方法:Arr 阅读全文
posted @ 2018-01-03 18:05 abcByme 阅读(1172) 评论(0) 推荐(0) 编辑
摘要: function formatDate(date,fmt) { if(/(y+)/.test(fmt)){ fmt = fmt.replace(RegExp.$1,(date.getFullYear()+'').substr(4-RegExp.$1.length)); } let o = { 'M+ 阅读全文
posted @ 2017-12-27 19:49 abcByme 阅读(11335) 评论(0) 推荐(0) 编辑
摘要: 译者:动静若参商 译文:http://www.zcfy.cc/article/1795 原文:https://davidwalsh.name/es6-features JavaScript社区中的每个人都喜欢新API、新语法和新特性——可以更优雅,更智能,更有效的完成重要任务。ES6带来了很多好东西 阅读全文
posted @ 2017-12-26 11:31 abcByme 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 1、冒泡排序 2、快速排序 3、二路归并 字符串操作 1、判断回文字符串 2、翻转字符串 思路一:反向遍历字符串 思路二:转化成array操作 3、生成指定长度随机字符串 4、统计字符串中次数最多字母 数组操作 1、数组去重 2、数组中最大差值 其他常见算法 1、阶乘 非递归实现 递归实现 2、生成 阅读全文
posted @ 2017-12-26 10:44 abcByme 阅读(861) 评论(0) 推荐(2) 编辑
摘要: 当前,数据可视化已经成为数据科学领域非常重要的一部分。不同网络系统中产生的数据,都需要经过适当的可视化处理,以便更好的呈现给用户读取和分析。 对任何一个组织来说,如果能够充分的获取数据、可视化数据和分析数据,那么就能很大程度上帮助了解数据产生的深层次原因,以便据此做出正确的决定。 对于前端开发人员来 阅读全文
posted @ 2017-12-25 09:34 abcByme 阅读(3358) 评论(1) 推荐(0) 编辑
摘要: 冒泡排序 快速排序 去重 查找字符串中最多的值 阅读全文
posted @ 2017-12-20 16:38 abcByme 阅读(570) 评论(0) 推荐(0) 编辑
摘要: <meta content="webkit" name="renderer"><meta content="IE=Edge,chrome=1" http-equiv="X-UA-Compatible">解决浏览器渲染问题 阅读全文
posted @ 2017-12-20 16:15 abcByme 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 原文:https://github.com/Chalarangelo/30-seconds-of-code#anagrams-of-string-with-duplicates 作者:Chalarangelo 译者:IT168 www.toutiao.com/i6498962961288135182 阅读全文
posted @ 2017-12-19 15:24 abcByme 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 来自:https://segmentfault.com/a/1190000009294321 (侵删) git 源码地址 https://github.com/ustbhuangyi/vue-sell(侵删) html代码 生成一个动画小球的div,并且生成五个小球,五个是为了生成一定数量的小球来作 阅读全文
posted @ 2017-12-18 20:15 abcByme 阅读(2691) 评论(0) 推荐(0) 编辑
摘要: // 提取特殊字符串长度(scrstr 源字符串 armstr 特殊字符) getStrCount: function(scrstr, armstr) { var count = 0; while (scrstr.indexOf(armstr) >= 1) { scrstr = scrstr.replace(armstr, "") count++;... 阅读全文
posted @ 2017-12-05 19:30 abcByme 阅读(828) 评论(0) 推荐(0) 编辑
摘要: //两数组去除重复数值 mergeArray: function(arr1, arr2) { for (var i = 0; i < arr1.length; i++) { for (var j = 0; j < arr2.length; j++) { if (arr1[i] === arr2[j]) { arr1.... 阅读全文
posted @ 2017-12-05 18:14 abcByme 阅读(4263) 评论(0) 推荐(0) 编辑
摘要: getobjs(obj,key,value) 阅读全文
posted @ 2017-12-01 10:43 abcByme 阅读(1645) 评论(2) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/qq_34543438/article/details/72868546?locationNum=3&fps=1 一、├── build // 项目构建(webpack)相关代码 记忆:(够贱) 9个│ ├── build.js // 生产环境构建代码 阅读全文
posted @ 2017-11-22 17:51 abcByme 阅读(939) 评论(0) 推荐(0) 编辑
摘要: 方法1:如果你想保留刚才本地修改的代码,并把git服务器上的代码pull到本地(本地刚才修改的代码将会被暂时封存起来) [plain] view plain copy git stash git pull origin master git stash pop [plain] view plain  阅读全文
posted @ 2017-11-20 19:06 abcByme 阅读(363) 评论(0) 推荐(0) 编辑
摘要: (function() { 'use strict'; /** * myApp Module * * Description */ angular.module('myApp') .filter('is_null', function() { return function(input) {... 阅读全文
posted @ 2017-11-17 10:45 abcByme 阅读(796) 评论(0) 推荐(0) 编辑
摘要: formatDuring: function(mss) { var days = parseInt(mss / (1000 * 60 * 60 * 24)); var hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var minutes = parseInt((mss % (1... 阅读全文
posted @ 2017-11-16 15:47 abcByme 阅读(1841) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/sinat_17775997/article/details/54710420 注意:vue-router 2只适用于Vue2.x版本,下面我们是基于vue2.0讲的如何使用vue-router 2实现路由功能。推荐使用npm安装。 一、使用路由在ma 阅读全文
posted @ 2017-11-13 17:22 abcByme 阅读(720) 评论(0) 推荐(0) 编辑
摘要: 源:http://www.cnblogs.com/jn1223/p/6656956.html 源:http://www.cnblogs.com/jn1223/p/6656956.html 源:http://www.cnblogs.com/jn1223/p/6656956.html vue-cli中安 阅读全文
posted @ 2017-11-07 11:58 abcByme 阅读(493) 评论(0) 推荐(0) 编辑
摘要: Vue 2.5 发布了:15篇前端热文回看 2017-11-02 前端大全 (点击上方公众号,可快速关注) 本文精选了「前端大全」2017 年 10 月的 15 篇热门文章。其中有职场分享、技术分享和技术资源。 注:以下文章,点击标题即可阅读 《Vue 2.5 发布了》 我们很高兴宣布 Vue 2. 阅读全文
posted @ 2017-11-03 18:14 abcByme 阅读(403) 评论(0) 推荐(0) 编辑
摘要: // import Lesson17 from './class/lesson17';// console.log(Lesson17.A); //123 阅读全文
posted @ 2017-11-01 13:58 abcByme 阅读(766) 评论(0) 推荐(0) 编辑
摘要: 修饰器是一个函数,用来修改类的行为(注意:1、函数 2、修改行为 3、对类进行操作){ //修饰器函数定义 target:类本身,name名称,descriptor描述 let readonly = function(target, name, descriptor) { descriptor.writable = false; //只读 re... 阅读全文
posted @ 2017-11-01 13:38 abcByme 阅读(376) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页