提交 48884168 authored 作者: 龙菲's avatar 龙菲

index.html中引入wow.js测试部署报错问题

上级 06a655a7
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %> htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %>
<script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script> <script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
<% } %> --> <% } %> -->
<script type="text/javascript" src="./static/js/wow.js"></script>
<script type="text/javascript">
new WOW().init()
</script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -25,19 +25,19 @@ Vue.use(ElementUI); ...@@ -25,19 +25,19 @@ Vue.use(ElementUI);
// 全局注册动画效果 // 全局注册动画效果
Vue.use(animated); Vue.use(animated);
Vue.prototype.$wow = new WOW({ // Vue.prototype.$wow = new WOW({
boxClass: 'wow', // default // boxClass: 'wow', // default
animateClass: 'animated', // default // animateClass: 'animated', // default
offset: 0, // default // offset: 0, // default
mobile: true, // default // mobile: true, // default
live: true, // live: true,
scrollContainer: null, // scrollContainer: null,
resetAnimation: true, // resetAnimation: true,
// live为true时,控制台会提示:MutationObserver is not supported by your browser. & WOW.js cannot detect dom mutations, please call .sync() after loading new content. // // live为true时,控制台会提示:MutationObserver is not supported by your browser. & WOW.js cannot detect dom mutations, please call .sync() after loading new content.
callback: function (box) { // callback: function (box) {
console.log("WOW: animating <" + box.tagName.toLowerCase() + ">") // console.log("WOW: animating <" + box.tagName.toLowerCase() + ">")
} // }
}) // })
Vue.prototype.$getFullUrl = getFullUrl Vue.prototype.$getFullUrl = getFullUrl
new Vue({ new Vue({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论