前端学习
weixin_40739653
这个作者很懒,什么都没留下…
展开
-
uniapp swiper内有点击事件时会触发 swiper的animationfinish事件
@click 改成原创 2021-03-30 09:59:24 · 827 阅读 · 0 评论 -
uView报错Cannot read property ‘bottom‘ of null的解决方法
uViewUI报错Cannot read property 'bottom' of null的解决方法uViewUI在H5下报错’bottom’ of null,产生的原因是:吸顶组件u-sticky和底部导航栏tabbar切换页面时产生冲突,sticky组件创建了Observer监听,当切换页面且页面没有销毁时,导致组件仍然保持监听,所以出现Cannot read property ‘bottom’ of null报错解决办法...原创 2021-03-29 18:40:31 · 708 阅读 · 0 评论 -
导出table表格
原创 2020-05-14 11:36:24 · 145 阅读 · 0 评论 -
ios上时间戳转换的bug
正常情况下时间戳的转换:new Date(startime).getTime();但是在ios上获取到的是NAN解决:new Date(date.replace(/-/g,'/')).getTime();原创 2020-04-23 16:51:30 · 408 阅读 · 0 评论 -
H5 微信分享设置自定义title与图片
先引入微信js文件 <script src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> wx.config({ debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入...原创 2020-04-23 16:46:46 · 1229 阅读 · 0 评论 -
uniapp 生成小程序的坑
不能使用id选择器 小程序的生命周期只能用在父组件,不能用在子组件 没有window,document等对象。原创 2019-10-19 20:53:11 · 1520 阅读 · 0 评论 -
左边div宽度固定,右边宽度铺满;
1.使用float,盒子触发BFC(BFC详解:https://www.cnblogs.com/chen-cong/p/7862832.html)2.flex布局原创 2019-08-28 16:17:33 · 361 阅读 · 0 评论 -
自定义dialog
bootbox.dialog({ title: "<img src='/static/img/box_ques.png'/>", message: message, animate: false, // closeButton: false, buttons: { cancel: { label: '再想想',...原创 2019-06-04 15:43:04 · 88 阅读 · 0 评论 -
$.ajax向后台传file文件流
contentType: false,的解释请看https://segmentfault.com/a/1190000007207128;processData: false, 目前认识到的是序列化data数据的作用。原创 2019-06-04 15:16:56 · 3881 阅读 · 0 评论 -
文件大小限制
$(document).on('click', '.sign_up .file', function() { console.log($(".file").files) var max_size = 2 * 1024 * 1024; $(this).change(function(evt) { var files = evt.target.files; // 获得文件对象 ...原创 2019-06-04 14:56:31 · 446 阅读 · 0 评论 -
H5背景图随屏幕尺寸变换始终覆盖
原创 2019-06-10 15:39:09 · 2180 阅读 · 0 评论