![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
小吴前端
一名在前端道路越走越远的程序员
展开
-
git 基础使用(上传,修改上传)
git基础使用(第一次上传,修改上传)原创 2022-06-24 17:02:23 · 248 阅读 · 0 评论 -
vue+element el-tree实现权限树 全选取消全选和全展开取消全展开
<div> <el-checkbox @change="isAllChange" v-model="isAll">选中全部</el-checkbox> <el-checkbox @change="openAllChange" v-model="openAll">展开全部</el-checkbox> </div> <!-- 权限...原创 2021-12-01 15:14:01 · 1275 阅读 · 0 评论 -
js 经纬度正则表达式
经度 var longrg = /^[\-\+]?(0(\.\d{1,6})?|([1-9](\d)?)(\.\d{1,6})?|1[0-7]\d{1}(\.\d{1,6})?|180(([.][0]{1,6})?))$/ if(!longrg.test(this.ruleForm.longitude)){ this.$message.error(this.$t('common.Longitude')+this.$t('common.wrongFormat'));原创 2021-11-17 10:36:39 · 1157 阅读 · 0 评论 -
jq form表单预验证
jq form表单 <div class="divAll"> <div id="contents"> <h3 class="title">注册象讯账号</h3> <form action="#" onSubmit="return checkForm()"> <div id="form-itemGroup">原创 2021-05-11 09:36:40 · 225 阅读 · 0 评论 -
jq tab切换
鼠标移入tab切换 function mallTwoTab(){ mallTwoNav = $(".mall-two-tab-nav>div") .on('mousemove',function (){ var index= $(this).index(); $(this).addClass("content_bk").siblings().removeClass("content_bk");原创 2021-04-19 16:57:14 · 83 阅读 · 0 评论 -
vue 固钉
挂载添加事件 mounted(){ window.addEventListener('scroll', this.suspension); }, destroyed(){ window.removeEventListener("scroll",this.suspension); }, 挂载的函数 suspension(){ this.domTop=document.documentElement.scrollTop ||原创 2021-04-01 15:50:19 · 504 阅读 · 1 评论 -
vue 删除 数组里面的值
moverImg(index){ this.imgList.splice(index,1) },原创 2021-03-24 20:46:37 · 1946 阅读 · 0 评论 -
vue赋值新数组
Badge:0, imgList:[] } }, created() { const imgList = JSON.parse(JSON.stringify(this.imgUrl)) this.imgList=imgList },原创 2021-03-24 20:45:50 · 638 阅读 · 0 评论 -
js跳转
js跳转 跳转链接 在当前窗口打开 window.location.href="http://www.baidu.com" 跳转链接 在新窗口打开 window.open("http://www.baidu.com") 跳转链接 返回上一页 window.history.back(-1); 跳转链接 self.location.href="baidu.com" ...原创 2021-03-19 21:25:20 · 66 阅读 · 0 评论 -
vue 点击切换
vue show 实现简单的切换 html代码 <div :class="{active:shows==1}" @click="twshoW(1)">猜你喜欢</div> |<div :class="{active:shows==2}" @click="jsshoW(2)">我的足迹</div> js代码 shows:'', } }, methods:{ twshoW(index){原创 2021-03-19 10:03:53 · 247 阅读 · 0 评论 -
vue 生成新的值并发送给后端
vue 传后端接口 拿到对应的值 <el-form :model="numberValidateForm" ref="numberValidateForm" label-width="100px" class="demo-ruleForm"> <el-form-item label="充值金额" prop="amount" :rules="[{ required: true, message: '请添加充值金额'},{ type: 'number', message: '充值金额为大于或原创 2021-03-16 20:26:46 · 372 阅读 · 0 评论 -
vue delete 删除选项
取消事件 id传值 <template slot-scope="scope"> <el-button type="danger" size="mini" @click="handleDel(scope.row.id)">取消提现</el-button> </template> 接口删除 this.$axios.delete(`/user/balance/cash/${id}`).then(res=>{ th原创 2021-03-16 14:48:42 · 555 阅读 · 0 评论 -
vue 路由传值
vue 路由传值 传对应的id 传值 <template slot-scope="scope"> <el-button type="primary" size="mini" class="m-l-20 chakan"> <nuxt-link :to="{name:'user-balance-recharge-info-id',params:{id:scope.row.id}}" >查看 </nuxt-link> </el-button>原创 2021-03-16 13:44:20 · 121 阅读 · 0 评论 -
vue 点击事件路由跳转
vue路由跳转 this.$router.push({ name: "user-balance-log" }); //第二种 this.$router.push({path:"wechat/index"}原创 2021-03-16 13:29:09 · 1131 阅读 · 2 评论