会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Mr-Cui
唯有坚持,不负梦想!!!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
下一页
2020年3月19日
根据输入关键字过滤数组列表(列表搜索功能)
摘要: function query(key,list){ // 我这里直接return(也可赋给变量return变量出去) return list.filter(item => { // 如果list(name)包含key(输入框) => true if(item.includes(key)){ // 返
阅读全文
posted @ 2020-03-19 10:10 自律·给我自由
阅读(1256)
评论(0)
推荐(0)
2020年3月18日
uniapp 吸顶 小demo
摘要: <template> <view class="page-box"> <uniStatusBar class="status"></uniStatusBar> <uniStatusBar></uniStatusBar> <view style="height:200px">滚动试试</view> <
阅读全文
posted @ 2020-03-18 11:14 自律·给我自由
阅读(2355)
评论(0)
推荐(0)
uniapp 锚点滚动报错(h.push is not a function)
摘要: 实现:锚点滚动到指定位置uni.createSelectorQuery().in(this).select("#one").boundingClientRect(data => { uni.pageScrollTo({ duration:200, scrollTop: that.scrollTop
阅读全文
posted @ 2020-03-18 11:12 自律·给我自由
阅读(1335)
评论(0)
推荐(0)
uni-app 页面滚动到指定位置
摘要: uni.createSelectorQuery().select(".app").boundingClientRect(data=>{//目标节点 uni.createSelectorQuery().select(".al").boundingClientRect((res)=>{//最外层盒子节点
阅读全文
posted @ 2020-03-18 11:08 自律·给我自由
阅读(20576)
评论(0)
推荐(0)
过滤后端返回的html文本标签
摘要: let escape2Html=(str)=>{ var arrEntities = { 'lt': '<', 'gt': '>', 'nbsp': ' ', 'amp': '&', 'quot': '"' }; return str.replace(/&(lt|gt|nbsp|amp|quot);
阅读全文
posted @ 2020-03-18 11:06 自律·给我自由
阅读(645)
评论(0)
推荐(0)
2020年3月13日
uniapp 上拉加载
摘要: /* //nav切换 需要初始化数据 this.taskList = []; this.totlePage=''; this.params.page =1; this.count=''; this.showTxt=''; */ data() { return { taskList: [], totl
阅读全文
posted @ 2020-03-13 11:23 自律·给我自由
阅读(10364)
评论(0)
推荐(1)
2020年3月4日
js 千分位(分转元,万转元...)
摘要: function price(a){ var num = Number(a); if(!num){//等于0 return num+'.00'; }else{//不等于0 num = Math.round((num)*100)/10000; num = num.toFixed(2); num+=''
阅读全文
posted @ 2020-03-04 18:10 自律·给我自由
阅读(2197)
评论(0)
推荐(0)
解决:Vue中给input框手动赋值,视图却不更新
摘要: 1.使用数组方法splice this.arr = [{item1},{item2},{item3},{item4}] item1.a= 0 this.arr.splice(0, 1, item1) 注意: 由于 JavaScript 的限制,Vue 不能检测以下变动的数组: 1.当你利用索引直接设
阅读全文
posted @ 2020-03-04 11:50 自律·给我自由
阅读(6429)
评论(0)
推荐(0)
2020年3月3日
uni-app 实现安卓物理返回键返回,触发弹框提示是否退出
摘要: /* 自 HBuilderX v1.1.0 起,uni-app 的页面新增 onBackPress(event) 生命周期函数。 onBackPress(event) 返回 event ={from: backbutton | navigateBack} 说明 当用户进行以下操作时,会触发该函数:
阅读全文
posted @ 2020-03-03 10:32 自律·给我自由
阅读(10160)
评论(0)
推荐(0)
2020年2月14日
vant upload图片上传 (file文件)
摘要: <div class="upload-img"> <div class="img-box" v-for="(item,index) in uploadImages" :key="index"> <img class="image" :src="item"> </div> <!-- vant的uplo
阅读全文
posted @ 2020-02-14 18:04 自律·给我自由
阅读(34580)
评论(2)
推荐(1)
上一页
1
···
3
4
5
6
7
8
9
下一页
公告