摘要:
vue-router封装和用户是否需要登录 import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) const routes = [{ path: '/', redirect: '/home' }, { path: 阅读全文
摘要:
https://www.jianshu.com/p/d2900005b32a 阅读全文
摘要:
display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); grid-gap: 32px; gap: 62px; 阅读全文
摘要:
一、升级Vue-cli 3.0 yarn global add @vue/cli@next # OR npm install -g @vue/cli@next 输入vue -V(大写的V)查看版本 @vue/cli 4.5.0 //以上 二、创建3.0版本的Vue项目 vue create my-p 阅读全文
摘要:
yAxis: { // name: "粉丝数/点赞数", axisLabel: { formatter: function (value, index) { if (value >= 100000000) { return value / 100000000 + "亿"; } else if (va 阅读全文
摘要:
//onLoad 里 wx.login({ success(res) { console.log(res); var code = res.code var appid = '自己的appid'; var appSecret = '自己的appSecret' wx.request({ url: 'h 阅读全文
摘要:
grid: { top: 80, bottom: 80, left: 80, // 调整这个属性 right: 80, }, 阅读全文
摘要:
var option = { //标题 title : { show:true, //显示策略,默认值true,可选为:true(显示) | false(隐藏) text: '主标题', //主标题文本,'\n'指定换行 link:'', //主标题文本超链接,默认值true target: nul 阅读全文
摘要:
https://blog.csdn.net/weixin_44269886/article/details/103095541 阅读全文
摘要:
思路:新增一个新的空数组arr(arr的里元素的索引值表示,表示该索引值对应的li已经处于被选中状态),如果arr数组没有点击的索引值,就添加到arr数组里,如果有就把这个索引,就把这个索引从数组中删除。 <ul class="box"> <li v-for="c,index of cities" 阅读全文