- 博客(15)
- 收藏
- 关注
原创 uniapp APPwebviewH5,H5跳转APP内链接
记录:APP端内嵌webview H5页面,H5页面点击事件拿到值,在跳转回APP端。使用uniapp的webview。
2024-09-04 11:20:37
547
1
原创 Element ui上传图片
根据官方文档Element - The world's most popular Vue UI framework<el-upload :action="uploadActionUrl" list-type="picture-card" :on-change="handleEditChange" :on-preview="handlePictureCardPreview" :on-remove="handleRemove" :on-success="handSuccess...
2021-11-23 09:58:47
186
转载 监听input @input
//input 两位小数//input 保持两位小数//input 两位小数//input 保持两位小数<input type="number" @input="inputChange" v-model=" xxx">inputChange(e) { var that = this e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null this.$nextTick(() =>
2021-11-23 09:45:06
304
原创 组件传方法
父组件定义方法a组件 ref='aaa'b组件 @bbb='bbb'父组件methods:{bbb () { console.log( this.aaa )} }b组件 methods :xxxx () {this.$emit ( 'bbb' , this.xxxx)} a组件 方法定义传的...
2021-10-25 11:28:45
103
转载 vue Element ui 验证码倒计时
转载vue Element ui 实现倒计时_Song_Estelle的博客-优快云博客_elementui倒计时vue Element ui 实现倒计时view部分按钮<div class="verify_timer" @click="sendMsg" :disabled="canClick">{{ verifyCode }}</div>scriptsendMsg() { if (this.canClick) return
2021-10-18 10:31:23
973
转载 uniapp 组件传参
A页面第一步:引入子组件;import nsGoodsSku from '@/components/ns-goods-sku/ns-goods-sku.vue';第二步:在components中对子组件进行注册; components: { nsGoodsSku, },第三步:以标签的形式载入;通过数据绑定的形式进行传值<ns-goods-sku :chuancan="chuancan"></ns-goods-sku> data()...
2021-09-14 11:22:46
1237
转载 for循环和foreach区别
foreach和for循环的区别 - 精品唯居 - 博客园 for循环 for循环,通过下标,对循环中的代码反复执行,功能强大,可以通过index取得元素。在处理比较复杂的处理的时候较为方便。 foreach循环 foreach,从头到尾,对于集合中的对象遍历。适用于简单的遍历。foreach使用的时候,会锁定集合的对象,期间不能进行修改。 使用的选择 foreach相对于for循环,代码...
2021-09-13 10:52:35
738
转载 uniapp滚动分页
抄的<template> <view> <view v-for="(item,index) in list" :key="index"></view> <view class="loadingText">{{loadingText}}</view> </view></template><script> export default { data() { return
2021-09-11 16:26:21
1418
原创 uniapp倒计时
uni-countdown 倒计时 - DCloud 插件市场 倒计时<uni-count-down :day="currentTime.d" :hour="currentTime.h" :minute="currentTime.i" :second="currentTime.s" color="#FA5B14" splitorColor="#FF4644"/>data(){ return{ Cou.
2021-09-11 15:43:30
653
原创 JQ倒计时
<script type="text/javascript" src="https://oss.eventnet.cn/H5/public/jquery-3.5.1.min.js"></script><div> <p class="times_a"> <span id="showday"></span><span id="showhour">00</span>时<span id.
2021-09-11 15:21:24
114
原创 日期-时间
<text>{{ time (时间戳 ,"YY-MM-DD") }}</text> //2021-09-11<text>{{ time (时间戳) }}</text> //2021-09-11 15:12:15// 去除时间 "YY-DD-MM"time(timeStamp, type = "") { if (timeStamp != undefined && timeStamp != "" && t...
2021-09-11 15:16:41
127
原创 uniapp 弹出层
https://ext.dcloud.net.cn/plugin?id=329 弹出层 uniapp<view @click="open()">点击调用弹出层</view><uni-popup ref="addresPopup" type="center" :mask-click="false"> <view class="addresPopup-title"> <view class="addresPopup-tip.
2021-09-11 14:53:23
710
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人