会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小米商城
MIUI
IoT
云服务
金融
有品
企业团购
资质证照
协议规则
下载app
小米商城
智能生活
登录
注册
消息通知
购物车(0)
购物车中没有商品,赶紧选购吧
阳菜
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
10
下一页
2021年12月24日
vue手写表单提交
摘要: 手机号正则 邮箱正则 const telReg = /^(\+?0?86\-?)?1[3456789]\d{9}$/; const emailReg = /^\w+([-\.]\w+)*@\w+([\.-]\w+)*\.\w{2,4}$/; <div class="part_form"> <div
阅读全文
posted @ 2021-12-24 13:11 阳菜
阅读(160)
评论(0)
推荐(0)
2021年12月21日
微信小程序点击音乐播放暂停
摘要: .wxml{ <image class="music" type="primary" bind:tap="playMusic" wx:if="{{isPlayMusic}}" src=""></image> <image class="music" type="primary" bind:tap="
阅读全文
posted @ 2021-12-21 17:59 阳菜
阅读(461)
评论(0)
推荐(0)
2021年12月20日
微信小程序左右滑动
摘要: <scroll-view class="help" scroll-x="{{true}}"> <view class="help_main"> <block wx:for="{{list}}" wx:key="id"> <view class="default"> <image class="def
阅读全文
posted @ 2021-12-20 15:05 阳菜
阅读(199)
评论(0)
推荐(0)
2021年12月16日
时间戳格式化
摘要: import Vue from 'vue'; // 时间戳转换为 YYYY-MM-DD HH:mm:ss Vue.filter('formatDate', function(timeStamp, format) { if (timeStamp) { format = format || 'YYYY-
阅读全文
posted @ 2021-12-16 16:29 阳菜
阅读(163)
评论(0)
推荐(0)
2021年11月23日
vue中的商品放大镜效果
摘要: <template> <div> <div class="left"> <img class="leftImg" src="jpg" alt="" /> <!-- 鼠标层罩 --> <div v-show="topShow" class="top" :style="topStyle"></div>
阅读全文
posted @ 2021-11-23 11:39 阳菜
阅读(124)
评论(0)
推荐(0)
2021年11月19日
用Vue实现animate.css组件动画
摘要: 1.安装 :npm install animate.css --save 2. 引入:在main.js中: // animate 动画 import animate from "animate.css"; Vue.use(animate); 3. 绑定ref操作dom 给图片绑定animate__a
阅读全文
posted @ 2021-11-19 16:21 阳菜
阅读(439)
评论(0)
推荐(0)
2021年11月18日
vue中产品列表手写选项卡以及对应的列表(仅供参考不建议直接使用)
摘要: <!-- 产品列表 --> <div class="product_main"> <div class="product_tabs"> <div class="product_tabs_div" v-for="(item, index) in productFieldList" :key="item
阅读全文
posted @ 2021-11-18 15:22 阳菜
阅读(208)
评论(0)
推荐(0)
2021年11月3日
小程序使用animate.css
摘要: wxml wxss @-webkit-keyframes slideInRight { from { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); visibility: visible
阅读全文
posted @ 2021-11-03 19:38 阳菜
阅读(430)
评论(0)
推荐(0)
2021年9月23日
格式化日期直接调用
摘要: // 时间戳转换为 YYYY-MM-DD HH:mm:ss Vue.filter('formatDate', function(timeStamp, format) { if (timeStamp) { format = format || 'YYYY-MM-DD'; let week = [ '星
阅读全文
posted @ 2021-09-23 18:13 阳菜
阅读(47)
评论(0)
推荐(0)
vue中点击显示更多/隐藏
摘要: html data 数据源: computed:
阅读全文
posted @ 2021-09-23 15:59 阳菜
阅读(581)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
10
下一页
公告