会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
敲敲碰碰
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
下一页
2021年1月13日
slice,subStr,subString区别
摘要: subString(7,3),参数以较大的为截取结尾索引,当前截取的字符串为(3-7),当参数为负数时,负数参数默认为0; slice参数如果为负数则从字符串后面截取;如果开始索引大于结束索引则返回空字符串, subStr不支持负数,如果是负数则返回空字符串,第二个参数为获取的个数。
阅读全文
posted @ 2021-01-13 12:44 敲敲碰碰
阅读(70)
评论(0)
推荐(0)
2021年1月3日
Vue插槽slot
摘要: 1.匿名插槽 //parent <helloWorld> 插槽使用 </helloWorld> //child <template> <div> <!-- 显示插槽内容:“插槽使用” --> <slot></slot> </div> </template> 2.具名插槽 给slot添加name属性。
阅读全文
posted @ 2021-01-03 10:39 敲敲碰碰
阅读(89)
评论(0)
推荐(0)
VUE 组件通信问题
摘要: 一,父到子 1.属性props。 //child props:{msg:String} //parent <HelloWrold :Msg="welcome to Your Vue.js App"></HelloWorld> 2.引用$ref。 <HelloWorld ref="HW"/> this
阅读全文
posted @ 2021-01-03 10:22 敲敲碰碰
阅读(147)
评论(0)
推荐(0)
2020年12月18日
VUE 元素全屏,退出监测
摘要: html: <div class="fullScreen"> <i class="el-icon-full-screen" @click="toggleFullscreen"></i></div> data: data(){ return { isShowFullScreen: false, isS
阅读全文
posted @ 2020-12-18 18:13 敲敲碰碰
阅读(354)
评论(0)
推荐(0)
2020年12月9日
小程序及web(增、删、改、查)页面显示问题。
摘要: 一.微信小程序。 微信小程序提供了onLoad,onShow生命周期函数来进入页面获取列表数据。onLoad和onShow区别:onLoad,如果第一次进入页面之后,再次进入时不再触发。onShow,小程序每次进入页面都会触发,如果在onShow里调用列表接口,可以每次获取最新数据,但是页面也会重新
阅读全文
posted @ 2020-12-09 17:52 敲敲碰碰
阅读(415)
评论(0)
推荐(0)
2020年12月3日
小程序tabBar点击事件
摘要: 小程序tabBar事件
阅读全文
posted @ 2020-12-03 10:27 敲敲碰碰
阅读(1466)
评论(0)
推荐(0)
2019年12月16日
自定义checkbox(对勾)和radio样式
摘要: checkbox: html: <div> <label class="unSelected selected" for="choose"> <checkbox clsss="choose"/> </label> </div> css: .unSelected{ display: inline-bl
阅读全文
posted @ 2019-12-16 11:46 敲敲碰碰
阅读(2002)
评论(0)
推荐(0)
2019年9月24日
浏览器页面加载过程分析
摘要: 打开浏览器,通过http=>DNS=>IP=>TCP/IP=>获取到静态文件(js 、css、html、img等)=>绘制html dom 节点Tree
阅读全文
posted @ 2019-09-24 15:16 敲敲碰碰
阅读(216)
评论(0)
推荐(1)
2019年9月1日
获取年月日格式为yyyy-m-d简单写法
摘要: 方法:通过日期函数toLocaleString()获取。new Date().toLocaleString( ); //"2019/9/1 上午11:20:23" 获取年月日方法:new Date().toLocaleString( ).replace(/\//g,'-').split(" ")[0
阅读全文
posted @ 2019-09-01 11:23 敲敲碰碰
阅读(4032)
评论(0)
推荐(0)
2019年8月30日
css识别空格回车符
摘要: 新闻发布系统文字需要换行,后台返回数据包含空格、回车符号需要默认显示出来。在父元素加上css样式 :white-space:pre;即可。 例:<div class="white-space:pre;">abce efg</div> 兼容性:所有浏览器都支持 white-space 属性。 js动态
阅读全文
posted @ 2019-08-30 10:24 敲敲碰碰
阅读(3131)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告