会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
似月是你
首页
联系
新随笔
博客园
管理
友情链接
God helps those who help themselves.
天 道 酬 勤
似月是你
博客园
首页
新随笔
联系
订阅
管理
2021年3月9日
小程序视频循环播放3秒
摘要: 小程序视频循环播放3秒 <video id="myvideo{{index}}" data-i={{index}} src="{{item.video_list}}" loop controls="{{false}}" bindtimeupdate="bind_play"></video> bind
阅读全文
posted @ 2021-03-09 10:23 似月是你
阅读(326)
评论(0)
推荐(0)
2021年3月8日
小程序刷新组件
摘要: <!--在父页面中给子组件添加相应ID--!> <rating bindmyevent="score" class="rating" data-type="push_score"></rating> onPullDownRefresh: function () { //下拉刷新 this.selec
阅读全文
posted @ 2021-03-08 18:20 似月是你
阅读(651)
评论(0)
推荐(0)
2021年3月3日
小程序自定义导航二
摘要: { "pages": [ "page/index/index", ], "window": { "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#fff", "navigationBarTextStyle": "bla
阅读全文
posted @ 2021-03-03 12:10 似月是你
阅读(69)
评论(0)
推荐(0)
文字上下轮播效果
摘要: 文字上下轮播效果 <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <style> * { margin: 0; pa
阅读全文
posted @ 2021-03-03 11:57 似月是你
阅读(374)
评论(0)
推荐(0)
2020年11月9日
从数组删除内容remove方法
摘要: 从数组删除内容remove方法 // remove方法 Array.prototype.remove = function(val) { var index = this.indexOf(val); if (index > -1) { this.splice(index, 1); } };
阅读全文
posted @ 2020-11-09 11:49 似月是你
阅读(417)
评论(0)
推荐(0)
2020年9月28日
0点几的情况下四舍五入
摘要: 0点几的情况下四舍五入 // 0的情况下四舍五入 Number.prototype.toFixed=function (d) { var s=this+""; if(!d)d=0; if(s.indexOf(".") 1)s+="."; s+=new Array(d+1).join("0"); if
阅读全文
posted @ 2020-09-28 17:32 似月是你
阅读(210)
评论(0)
推荐(0)
2020年9月8日
将对象拼接成地址,改地址栏url不刷新
摘要: function route(Url, param){ let arr= []; for (let x in param) { if(param[x]){ arr.push(x + '=' + param[x]); } } let url = Url; if (arr.length == 0) {
阅读全文
posted @ 2020-09-08 11:41 似月是你
阅读(254)
评论(0)
推荐(0)
2020年8月29日
公告向左慢慢滚动
摘要: $(function(){ var timer = setInterval(autoplay,50); var leftnow = parseFloat($(".box_div ul").css("left")); var size = $(".box_div>ul").children().len
阅读全文
posted @ 2020-08-29 14:49 似月是你
阅读(158)
评论(0)
推荐(0)
公告向上滚动效果
摘要: jQuery(".txtMarquee-top").slide({ titCell:".hd ul", mainCell:".bd ul", autoPage:true, effect:"topLoop", autoPlay:true, vis:1, interTime:5000, }); <scr
阅读全文
posted @ 2020-08-29 14:38 似月是你
阅读(249)
评论(0)
推荐(0)
2020年8月22日
小程序自定义导航条
摘要: 小程序自定义导航条 主要思路将自带的关闭,自己编写一个,因为用自带的可控性查,就自己写一个吧,查了百度,写下来这算是一个比较完整的答案了 1.首先在app.json中将navigationStyle设置为“custom”,并且定义一个组件navbar { "pages":[ ], "usingCom
阅读全文
posted @ 2020-08-22 19:06 似月是你
阅读(347)
评论(0)
推荐(0)
下一页
公告