08 2022 档案
摘要:首先html页面中head内引入所需的js文件 jquery.min.js waypoints.min.js countup.min.js 3.使用<span>元素作为数字的容器。 1 <span class="counter">1,498,547.00</span> 2 <span class="
阅读全文
摘要:import moment from 'moment'; const randomDate = () => { // 随机生成0-11的数字 const randomMonthNum = Math.floor(Math.random() * 11); // 随机生成1-30数字 const rand
阅读全文
摘要:将methods里面定义的方法, 需要赋值给window,外部js就可以调用了 export default { name: "HelloWorld", props: { msg: String, }, mounted() { // 将vue中的方法赋值给window window.handleCl
阅读全文