Closed jacobcyl closed 6 years ago
[Vue warn]: Error in mounted hook: "TypeError: window.IntersectionObserver is not a constructor"
found in
---> at /Users/benzhao/Sites/@xunlei/vue-lazy-component/src/VueLazyComponent.vue
某些浏览器不支持 IntersectionObserver
可以引入 IntersectionObserver polyfill
https://github.com/w3c/IntersectionObserver/tree/master/polyfill
[Vue warn]: Error in mounted hook: "TypeError: window.IntersectionObserver is not a constructor"
found in
---> at /Users/benzhao/Sites/@xunlei/vue-lazy-component/src/VueLazyComponent.vue