摘要:
You commit changes to state in Vuex using defined mutations. You can easily access these state mutations in your template using mapMutations. This les 阅读全文
posted @ 2017-07-24 15:59
Zhentiw
阅读(338)
评论(0)
推荐(0)
摘要:
Install: Init project: Run: Create a index.js file inside store folder: Display the counter inside pages/index.vue: mapState: return a state tree obje 阅读全文
posted @ 2017-07-24 15:33
Zhentiw
阅读(221)
评论(0)
推荐(0)
摘要:
We can use 'type' keyword to define a function type. 'digitValidators', is a mapping object, return a function which type is DigitValidator. 阅读全文
posted @ 2017-07-24 02:41
Zhentiw
阅读(470)
评论(0)
推荐(0)
摘要:
We can use 'setSelectionRange(start, end)' to set cursor postion, in which start postion = end position. 阅读全文
posted @ 2017-07-24 02:28
Zhentiw
阅读(463)
评论(0)
推荐(0)
摘要:
@HostListener('keydown', ['$event', '$event.keyCode']) onKeyDown($event: KeyboardEvent, keyCode) { if(keyCode !== TAB) { $event.preventDefault(); } // get value for the key ... 阅读全文
posted @ 2017-07-24 01:56
Zhentiw
阅读(290)
评论(0)
推荐(0)

浙公网安备 33010602011771号