上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: 首先安装vue-router npm install vue-router --save 在src下新建router文件夹 再新建index.js文件 //router->index.js import Vue from 'vue' import VueRouter from 'vue-router 阅读全文
posted @ 2021-06-18 16:27 chicidol 阅读(78) 评论(0) 推荐(0)
摘要: 首先安装vuex npm install vuex --save 在src下新建store文件夹 再新建index.js、state.js、getters.js、mutations.js、mutations-types.js、actions.js文件 //index.js import Vue fr 阅读全文
posted @ 2021-06-18 15:30 chicidol 阅读(42) 评论(0) 推荐(0)
摘要: 安装node.js 查看版本node -v 安装vue3.0版本之前需要先把vue-cli升级到4.0版本, 如果之前安装过vue-cli需要把2.0相关的卸载之后重新安装,npm uni -g vue-cli, 如果没有安装过不需要卸载可以直接安装,npm i -g @vue/cli 查看版本vu 阅读全文
posted @ 2021-06-18 14:52 chicidol 阅读(60) 评论(0) 推荐(0)
摘要: //router.js { path: '/oppo-music', component: () => import('@/views/OppoMusic.vue'), meta: { title: 'OPPO音乐', keepAlive: true, }, name: 'OppoMusic', } 阅读全文
posted @ 2021-06-18 14:29 chicidol 阅读(261) 评论(0) 推荐(0)
摘要: <audio ref="audio"></audio> import CryptoJS from "crypto-js"; import Hls from 'hls.js'; methods:{ getHls (url) { if (Hls.isSupported()) { var hls = ne 阅读全文
posted @ 2021-06-18 13:56 chicidol 阅读(194) 评论(0) 推荐(0)
摘要: <div :style="{ color: activeColor, fontSize: fontSize + 'px' }"></div> data () { return { //初始样式 activeColor:'red', fontSize :30, }; }, //改变样式 this.ac 阅读全文
posted @ 2021-06-18 13:44 chicidol 阅读(237) 评论(0) 推荐(0)
摘要: 给设置overflow:hidden的元素设置position:fixed即可解决 阅读全文
posted @ 2021-06-18 13:38 chicidol 阅读(113) 评论(0) 推荐(0)
摘要: 需要使用hls插件 首先安装依赖npm install hls.js --save <audio ref="audio"></audio> import Hls from 'hls.js'; methods: { init(){ if (Hls.isSupported()) { var hls = 阅读全文
posted @ 2021-06-17 16:54 chicidol 阅读(2131) 评论(0) 推荐(0)
摘要: import CryptoJS from "crypto-js"; import urlencode from "urlencode"; methods:{ async initUser () { try { const url = "/api/info/self"; let _param = { 阅读全文
posted @ 2021-06-15 14:24 chicidol 阅读(145) 评论(0) 推荐(0)
摘要: methods:{ handleClick(){ //fetch方法:用来快速获取json格式数据 //Promise对象 //url:链接地址 fetch(“url”) // 第一个 then 接受到的是请求头的相关信息 .then(res=>{ console.log(res) //拿到的是一个 阅读全文
posted @ 2021-06-15 13:48 chicidol 阅读(72) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 下一页