摘要: var htmlStr=` 医生昵称:${res.fullName}问诊金:${res.visitMoney}$${res.selfIntroduction} `;在页面中可以使用${}的方式去插入变量 阅读全文
posted @ 2018-03-19 11:20 污途途 阅读(826) 评论(0) 推荐(0)
摘要: var starty=0;//触摸开始var movey=0;//触摸结束var ends=0;//计算结果divs.addEventListener("touchstart", function(e) { var touch = e.touches[0]; //获取第一个触点 starty = N 阅读全文
posted @ 2018-03-19 11:17 污途途 阅读(194) 评论(0) 推荐(0)
摘要: 如何实现父子组件之间的传值 1.父组件向子组件传值 1.在子组件中设置props:['commentId'] //子组件用来接收父组件传递过来值的属性名称 2.在父组件的自定义子组件标签中设置<subComponent :commentId="this.$route.params.photoId"> 阅读全文
posted @ 2017-12-19 16:11 污途途 阅读(460) 评论(0) 推荐(0)
摘要: 切割字符串 函数的两种方式 函数的递归 数组检测 数组的增删 数组的分割(join("用什么分割")) 数组的翻转(reverse) 阅读全文
posted @ 2017-12-01 20:34 污途途 阅读(148) 评论(0) 推荐(0)
摘要: 恢复内容开始 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <script src="./jquery-3.2.0.js"></script> 7 阅读全文
posted @ 2017-11-27 09:46 污途途 阅读(93) 评论(0) 推荐(0)
摘要: vue-cli脚手架搭建的vue项目中引入jquery 第一步 npm install jquery --save 第二步 在build/webpack.base.conf.js里加入 第三步 同样build/webpack.base.conf.js中 在module.exports的最后加入 第四 阅读全文
posted @ 2017-11-22 17:25 污途途 阅读(573) 评论(0) 推荐(0)
摘要: <script> $('#fromid').on('submit', function() { console.log(111111111111111111) return false }) </script> <script> $('#fromid').on('submit', function( 阅读全文
posted @ 2017-11-21 21:23 污途途 阅读(154) 评论(0) 推荐(0)
摘要: cook的特性 --> cookit的读写 document.cookie --> 过期时间:默认在浏览器关闭时 语法 1)使用expires特性,取值为data类型的字符串用于描述过期时间 document.cookie='key=value;expires=' +new Date('设置时间') 阅读全文
posted @ 2017-11-21 10:47 污途途 阅读(134) 评论(0) 推荐(0)
摘要: 1 父组件给子组件传值 1)子组件部分 2)父组件部分 阅读全文
posted @ 2017-11-17 18:19 污途途 阅读(2262) 评论(0) 推荐(0)