- IT Tips
- Ruby / Rails以外の開発一般
READ MORE
ポイント: コード中のdebounce
はLodash.jsのメソッドで、このような一定時間入力がないときの処理を書くのに使えます。このため、このサンプルの実行にはLodash.jsも必要です。
methods: {
c: _.debounce(function() {
this.t = "password"
this.$nextTick(function() { this.$refs.r1.focus() })
}, 1000 * 1),
},