01 2019 档案

摘要:一、小脚本语法 阅读全文
posted @ 2019-01-21 19:28 shuihanxiao 阅读(277) 评论(0) 推荐(0) 编辑
摘要:一、main.js中引入 store index.js为入口js文件 阅读全文
posted @ 2019-01-21 18:49 shuihanxiao 阅读(2326) 评论(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 阅读(129) 评论(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 阅读(3406) 评论(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 阅读(2127) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示