摘要:
We can use 'setSelectionRange(start, end)' to set cursor postion, in which start postion = end position. 阅读全文
posted @ 2017-07-24 02:28
Zhentiw
阅读(460)
评论(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
阅读(287)
评论(0)
推荐(0)

浙公网安备 33010602011771号