摘要: 一、展示效果(treetable基本样式https://www.cnblogs.com/shuihanxiao/p/10413454.html) 二、html文件(若一个页面又多个treetable,必须把所有table的html拼接好后,再调用treetable,treetable的js只初始化一 阅读全文
posted @ 2019-02-21 16:29 shuihanxiao 阅读(9092) 评论(0) 推荐(0)
摘要: 一、小脚本语法 阅读全文
posted @ 2019-01-21 19:28 shuihanxiao 阅读(282) 评论(0) 推荐(0)
摘要: 一、main.js中引入 store index.js为入口js文件 阅读全文
posted @ 2019-01-21 18:49 shuihanxiao 阅读(2344) 评论(0) 推荐(1)
摘要: 1、什么是mvvm? mvvm是Model-View-ViewModel的缩写,mvvm是一种设计思想,Model层代表数据模型,也可以在Model中定义数据修改和操作的业务逻辑,View是UI组件,他负责将数据模型转化成UI展现出来,ViewModel是一个同步View和Model的对象 在MVV 阅读全文
posted @ 2019-01-21 17:46 shuihanxiao 阅读(132) 评论(0) 推荐(0)
摘要: 一、转换成金额形式 function toMoney(num){ if(num){ if(isNaN(num)) { alert("金额中含有不能识别的字符"); return; } num = typeof num == "string"?parseFloat(num):num//判断是否是字符串 阅读全文
posted @ 2019-01-17 18:07 shuihanxiao 阅读(3411) 评论(0) 推荐(0)
摘要: <script> b("001"); function b(id) { console.log("b函数的id:"+id); //var history = "<a href='#' onclick='a(" +id + ")'>历史</a>"; 错误代码这里id默认理解成数字类型,需要"",直接在 阅读全文
posted @ 2019-01-10 14:57 shuihanxiao 阅读(2135) 评论(0) 推荐(0)
摘要: function getUrlParam1(name){ //正则表达式过滤 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg 阅读全文
posted @ 2018-12-18 19:26 shuihanxiao 阅读(608) 评论(0) 推荐(0)
摘要: // 判断是否为手机号 isPoneAvailable: function (pone) { var myreg = /^[1][3,4,5,7,8][0-9]{9}$/; if (!myreg.test(pone)) { return false; } else { return true; } 阅读全文
posted @ 2018-12-13 14:56 shuihanxiao 阅读(2831) 评论(0) 推荐(0)
摘要: //利用原生Js获取操作系统版本function getOS() { var sUserAgent = navigator.userAgent; var isWin = (navigator.platform == "Win32") || (navigator.platform == "Window 阅读全文
posted @ 2018-12-06 11:22 shuihanxiao 阅读(8918) 评论(0) 推荐(0)
摘要: 一、controller层 二、service层 1、接口 2、接口的实现 转换 阅读全文
posted @ 2018-12-03 20:33 shuihanxiao 阅读(441) 评论(0) 推荐(0)