最近要部署一台新的 Server, 想說這次把它做一個紀錄好了
Server: Ubuntu 20.04.3 LTS
就這樣。
mounted() {
let isInputZh = false
const searchInput = this.$refs.Input.$el.children[0]
searchInput.addEventListener('compositionstart', function(e) {
isInputZh = true
}, false)
searchInput.addEventListener('compositionupdate', function(e) {
isInputZh = false
}, false)
searchInput.addEventListener('compositionend', function(e) {
isInputZh = false
}, false)
searchInput.addEventListener('input', function(e) {
if (isInputZh) return
remoteApiMethod(this.value)
}, false)
}
Google Blogger Theme: https://gooyaabitemplates.com/
Coprights @ 2016, Blogger Templates Designed By Templateism | Distributed By Gooyaabi Templates