用來提升tocuch 與 mouse wheel的效能
但副作用是 他造成preventDefault失效
但如果 是監聽的事件內會用到preventDefault
停止事件的傳遞
必須將 passive 設為true 才有作用
例
document.body.addEventListener('touchmove', function(evt) {
evt.preventDefault()
},{passive: false})
document.body.addEventListener('touchmove', function(evt) {
evt.preventDefault()
},{passive: false})
INSERT INTO tablename (id,position) VALUES //要更新的欄位一定要包含有pk的欄位
(6878,7),(6879,8),(6880,9) // 送入多筆要更新的資料
ON DUPLICATE KEY UPDATE
id=VALUES(id),position=VALUES(position)
INSERT INTO table(column_name) VALUES('null')
改成
INSERT INTO table(column_name) VALUES(NULL)