摘要: 1.音乐榜单组件 <template> <div class="mod-albums"> <div class="hd log url"> <h2>新歌速递</h2> <div>更多</div> </div> <div class="container"> <div class="gallery"> 阅读全文
posted @ 2019-08-27 22:45 星雨,恒奋斗,过客 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 1.新歌速递模块 <template> <div class="mod-albums"> <div class="hd log url"> <h2>新歌速递</h2> <div>更多</div> </div> <div class="container"> <div class="gallery"> 阅读全文
posted @ 2019-08-27 21:47 星雨,恒奋斗,过客 阅读(156) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="mod-albums"> <div class="hd log url"> <h2>今日推荐</h2> <div>更多</div> </div> <div class="container"> <div class="gallery"> <div cla 阅读全文
posted @ 2019-08-27 08:28 星雨,恒奋斗,过客 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1.Lodash 的随机数生成函数 //原生js function getsRandomNumber(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } getsRandomNumber(20, 100); 阅读全文
posted @ 2019-08-25 22:41 星雨,恒奋斗,过客 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1.redirect:'/Home'(重定向); 2.安装npm install --save axios 3.配置axios的 import Axios from 'axios'Vue.prototype.$axios=Axios 4.跨域处理: proxyTable:{ "/baidu_musi 阅读全文
posted @ 2019-08-25 21:46 星雨,恒奋斗,过客 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1.结构配置: <template> <div class="index"> <ul> <li> <router-link to="/Home"> <img src="../assets/logo-ea5.png" alt=""></router-link> </li> <li><router-li 阅读全文
posted @ 2019-08-25 20:02 星雨,恒奋斗,过客 阅读(177) 评论(0) 推荐(0) 编辑
摘要: vue常用的组件库网址:https://github.com/vuejs/awesome-vue 1.v-tooltip的安装 <template> <div class="mine">Mine<button v-tooltip="'You have ' + count + ' new messag 阅读全文
posted @ 2019-08-24 23:49 星雨,恒奋斗,过客 阅读(205) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="shopcar"> shopcar <swiper :options="swiperOption" ref="mySwiper" @someSwiperEvent="callback"> <swiper-slide>I'm Slide 1</swiper 阅读全文
posted @ 2019-08-24 20:07 星雨,恒奋斗,过客 阅读(216) 评论(0) 推荐(0) 编辑
摘要: npm install element-ui -S 完整应用: import Vue from 'vue'; import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; import App f 阅读全文
posted @ 2019-08-23 17:41 星雨,恒奋斗,过客 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1.创建一个导航组件 2.路由的配置: import Vue from 'vue'import Router from 'vue-router'import Home from '@/components/nav/Home'import Mine from '@/components/nav/Min 阅读全文
posted @ 2019-08-22 22:27 星雨,恒奋斗,过客 阅读(163) 评论(0) 推荐(0) 编辑