- 博客(11)
- 收藏
- 关注
原创 vue 监听事件
事件<divclass="test"@touchstart="gtouchstart()"@touchmove="gtouchmove()"@touchend="gtouchend()">试一试呀!</div></div></template><script>exportdefault{data(){return...
2020-08-29 18:44:14 212
原创 地址簿修改
<template> <div class="content"> <!-- <van-sticky> --> <!-- <van-nav-bar --> <!-- title="选择城市" --> <!-- left-arrow --> <!-- /> --> ...
2020-08-25 13:14:26 166
原创 2020-08-22
<!-- 登录页 用户表单 --> <van-cell-group> <van-field v-model="username" clearable label="用户名" right-icon="question-o" placeholder="请输入用户名" left-icon="contact" @click-right-icon="$toast('用户名必须...
2020-08-22 17:40:39 58
原创 js 截取数据大全
var str = 'Hello Word!';var newStr = str.substring(2);console.log(newStr); // 输出 llo Word!newStr = str.substring(2,8);console.log(newStr); // 输出 llo Wovar str = 'abcd9999';var newStr = str.slice(2);console.log(newStr); // 输出 cd9999;newStr = str.s
2020-08-22 17:38:20 1393
原创 vue表单验证(vantui 直接复制页面可测)
<!-- 登录页 用户表单 --> <van-cell-group> <van-field v-model="username" clearable label="用户名" right-icon="question-o" placeholder="请输入用户名" left-icon="contact" @click-right-icon="$toast('用户名必须...
2020-08-22 14:34:53 1377
原创 vuex存取值
commit: 同步操作this.$store.commit('方法名',值)【存储】this.$store.state.方法名【取值】dispatch: 异步操作this.$store.dispatch('方法名',值)【存储】this.$store.getters.方法名【取值】
2020-08-17 11:23:18 1471 1
原创 x修改 微信公众号头部标题
1.npm install vue-wechat-title --save2.引入main.js Vue.use(require('vue-wechat-title'));3.替换app.vue 中的rount <router-view v-wechat-title="$route.meta.title"></router-view>4.配置rount export default new Router({ routes: [ { ...
2020-08-15 23:04:36 909 2
原创 vant 拼音排序 城市列表
template><div><van-index-barclass="indexBar":sticky="false"highlight-color="#AE853A"><van-index-anchorv-for="(item,index)inthis.cityData":key="index":index=item.id><spanclass="indexWord"@click="...
2020-08-08 11:29:32 882
原创 vant 城市列表排序
template> <van-index-bar class="indexBar" :sticky="false" highlight-color="#AE853A"> <van-index-anchor v-for="(item,index) in this.cityData" :key="index" :index=item.id> <span class="indexWord" @click="chooseCity(item)">{{it
2020-08-08 11:28:55 1132
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人