摘要: created () { const timer = setInterval(() => { xxxx }, 1000); this.$once("hook:beforeDestroy", () => { clearInterval(timer); }); } 阅读全文
posted @ 2021-01-28 19:28 张小贝 阅读(1360) 评论(0) 推荐(0) 编辑
摘要: 移动端常见的一些兼容性问题 O网页链接 ​​​​ 阅读全文
posted @ 2017-10-26 10:47 张小贝 阅读(153) 评论(0) 推荐(0) 编辑
摘要: parse用于从一个字符串中解析出json对象,如 var str = '{"name":"huangxiaojian","age":"23"}' 结果: JSON.parse(str) 注意:单引号写在{}外,每个属性名都必须用双引号,否则会抛出异常。 stringify()用于从一个对象解析出字 阅读全文
posted @ 2017-10-16 17:35 张小贝 阅读(1651) 评论(0) 推荐(0) 编辑
摘要: 一、下载安装: 地址:上MongoDB官网 ,下载适合的自己电脑系统相对应的版本,安装到合适的位置。我这里下载的为: 二、开启服务与关闭 创建数据库目录D:\mongodb\data,接下来打开cmd命令行窗口,切换到D:\mongodb\bin 目录执行如下命令(其中 --dbpath是指定数据库 阅读全文
posted @ 2017-08-24 14:07 张小贝 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 摘抄,好酷的json.stringify JSON.stringify 函数 (JavaScript) 将 JavaScript 值转换为 JavaScript 对象表示法 (Json) 字符串。 语法 JSON.stringify( value [, replacer] [, space]) 参数 阅读全文
posted @ 2017-03-01 11:48 张小贝 阅读(3872) 评论(0) 推荐(0) 编辑
摘要: node grunt 阅读全文
posted @ 2017-01-12 16:44 张小贝 阅读(145) 评论(0) 推荐(0) 编辑
摘要: KendoUI grid,dropdownlist,treeview 阅读全文
posted @ 2017-01-12 16:33 张小贝 阅读(400) 评论(0) 推荐(0) 编辑
摘要: //可拖拽 功能$.fn.extend({ //用法:$(element).jqDrag(); //element需要具备定位属性,需要手动调整层叠样式,这里只是修改鼠标拖动效果 jqDrag: function () { var _drag = false, _self, _x, _y, cw, ch, sw, sh, dragBar, DragCnt, vxw = window, vxd = document, vxe = vxd.documentElement, vxg = vxd.getElementsByTagName('body')[0], //dragConten 阅读全文
posted @ 2014-03-10 13:35 张小贝 阅读(1045) 评论(0) 推荐(0) 编辑
摘要: JS网站当前日期在IE9、Chrome和FireFox中年份显示为113年的解决方法 getFullYear(); 阅读全文
posted @ 2014-02-28 11:57 张小贝 阅读(242) 评论(0) 推荐(0) 编辑
摘要: /////C# 后台代码public FileContentResult PieChart() { TransactionStatisticsBLL bll = new TransactionStatisticsBLL(); TransactionStatistics_Query query = new TransactionStatistics_Query(); GetQuery(query); query.Stock = Request["SecuCode"]; query.InfoType = Request["InfoType"]; List l 阅读全文
posted @ 2014-02-12 11:54 张小贝 阅读(1404) 评论(0) 推荐(0) 编辑