01 2022 档案
摘要:<template> <div class="countDown"> <div v-if="!isCountDownOver"> <span class="title">{{ LANG.test1.desc100 }}</span> <span class="time">{{ countDownHo
阅读全文
摘要:1.把pdf放在static文件夹下 安装vue-pdf <template> <div> <pdf v-for="i in numPages" :key="i" :src="url" :page="i"></pdf> </div> </template> <style lang="less" sc
阅读全文
摘要:<template> <!-- 下拉菜单 --> <div class="nav_mg_top"> <div class="down_bg"> <div class="dropdown pa"> <span>{{ LANG.test1.desc83 }}</span> <div class="dro
阅读全文
摘要:方法一: 直接在页面引入组件 <template> <div class="page-bar"> <ul> <li v-if="cur > 1"> <a v-on:click="cur--, pageClick()">{{ LANG.test1.desc152 }}</a> </li> <li v-
阅读全文
摘要:在index.html添加 <script> (function () { var f = function () { document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px
阅读全文
摘要:在router index.js添加 let router = new Router({ routes: [{}], scrollBehavior(to, from, savedPosition) { // console.log('to', to) if (to.hash) { return {
阅读全文