会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
杨廷贯
博客园
首页
新随笔
联系
订阅
管理
2017年7月27日
钟表的定时器,
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maxi
阅读全文
posted @ 2017-07-27 14:08 杨廷贯
阅读(140)
评论(0)
推荐(0)
2017年7月26日
ajax json接受带数据
摘要: 如果ajax接收数据,json数据没有length这个属性,需要转为数组,或者遍历json数据
阅读全文
posted @ 2017-07-26 16:26 杨廷贯
阅读(91)
评论(0)
推荐(0)
分页传页数的方法
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <div> <span id="num">1</span> <button id="prev">上一页</button> <butto
阅读全文
posted @ 2017-07-26 14:57 杨廷贯
阅读(233)
评论(0)
推荐(0)
2017年7月25日
手机端滑动事件
摘要: /*判断上下滑动:*/ $('body').bind('touchstart',function(e){ startX = e.originalEvent.changedTouches[0].pageX; startY = e.originalEvent.changedTouches[0].page
阅读全文
posted @ 2017-07-25 15:27 杨廷贯
阅读(650)
评论(0)
推荐(0)
2017年7月1日
两个数组的索引相同的放在一起,转为json发送给后台
摘要: <script> var ary=[]; var ary1=[]; var json=[]; document.getElementById('sub_add').onclick=function(){ var shipNum=document.getElementsByClassName('shi
阅读全文
posted @ 2017-07-01 09:08 杨廷贯
阅读(171)
评论(0)
推荐(0)
保留小数点后两位小数
摘要: toFixed()
阅读全文
posted @ 2017-07-01 08:57 杨廷贯
阅读(95)
评论(0)
推荐(0)
2017年6月27日
动态增加树形分类
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>分类列表</title> <meta n
阅读全文
posted @ 2017-06-27 15:13 杨廷贯
阅读(155)
评论(0)
推荐(0)
2017年6月8日
微信小程序app.js配置文件
摘要: { "pages":[ "pages/index/index", "pages/tucao/tucao", "pages/center/center" ], "window":{ "backgroundTextStyle":"", "navigationBarBackgroundColor": "r
阅读全文
posted @ 2017-06-08 10:46 杨廷贯
阅读(594)
评论(0)
推荐(0)
微信小程序请求方法
摘要: wx.request({ url: 'http://xx.xxxxx.com/xxx.php',//上线的话必须是https,没有appId的本地请求貌似不受影响 data: {}, method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, T
阅读全文
posted @ 2017-06-08 10:45 杨廷贯
阅读(210)
评论(0)
推荐(0)
2017年6月2日
css设置几行隐藏显示省略号
摘要: display:inline-block;font-size:12px;color:#808080;width:100%;-webkit-line-clamp: 2;-webkit-box-orient: vertical;display: -webkit-box;overflow:hidden;w
阅读全文
posted @ 2017-06-02 15:38 杨廷贯
阅读(219)
评论(0)
推荐(0)
下一页