js普通函数加括号与不加括号的区别 | 您所在的位置:网站首页 › js中和中括号的区别 › js普通函数加括号与不加括号的区别 |
overflow-scrolling解决滚动卡顿问题
好多吃的啊: 赞赞赞 js普通函数加括号与不加括号的区别m0_53074858: 学到了! vue element-ui的$notify注意点tiunxi: 楼sh的问题可以这么解决 private showRefreshUI(e: Event) { // Display a notification inviting the user to refresh/reload the app due // to an app update being available. // The new service worker is installed, but not yet active. // Store the ServiceWorkerRegistration instance for later use. const h = this.$createElement this.registration = (e as CustomEvent).detail this.$notify.info({ title: 'Update available', message: h('div', { class: 'sw-update-popup' }, [ this.notificationText, h('br'), h('button', { on: { click: (e: Event) => { e.preventDefault() this.refreshApp() } } }, this.refreshButtonText) ]), position: 'bottom-right', duration: 0 }) } private refreshApp() { 」 vue element-ui的$notify注意点tiunxi 回复 chiuwingyan: private showRefreshUI(e: Event) { // Display a notification inviting the user to refresh/reload the app due // to an app update being available. // The new service worker is installed, but not yet active. // Store the ServiceWorkerRegistration instance for later use. const h = this.$createElement this.registration = (e as CustomEvent).detail this.$notify.info({ title: 'Update available', message: h('div', { class: 'sw-update-popup' }, [ this.notificationText, h('br'), h('button', { on: { click: (e: Event) => { e.preventDefault() this.refreshApp() } } }, this.refreshButtonText) ]), position: 'bottom-right', duration: 0 }) } private refreshApp() { // Protect against missing registration.waiting. if (!this.registration || !this.registration.waiting) return this.registration.waiting.postMessage('skipWaiting') |
CopyRight 2018-2019 实验室设备网 版权所有 |