07 2019 档案

摘要:vue-property-decorator和typescript结合构建的class类组件,父组件触发子组件方法的方式 class类组件示例 Father类组件 <template> <div> <h1>父组件</h1> <button @click="handleSonMethod">点击触发子 阅读全文
posted @ 2019-07-22 17:47 _Jarrett 阅读(2894) 评论(3) 推荐(1)
摘要:时间字符串 转 时间戳 默认转化后为Number类型后获得的是时间的毫秒数值,需求是要10位数的秒值,所以需要除以1000 中可以在某个元素前使用 '+' 号,这个操作是将该元素转换成Number类型,如果转换失败,那么将得到 将会调用 上的 方法 等效代码如下: + + + + 时间戳 转 时间字 阅读全文
posted @ 2019-07-19 12:01 _Jarrett 阅读(3165) 评论(0) 推荐(0)
摘要:```javascript { "Print to console": { "prefix": "vue", "body": [ "", "", " ", "$4", " ", "\n", "\n", "" ], "description": "vue单文件组建模板" } } ``` 阅读全文
posted @ 2019-07-05 10:48 _Jarrett 阅读(882) 评论(0) 推荐(0)