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 杨廷贯 阅读(125) 评论(0) 推荐(0) 编辑
  2017年7月26日
摘要: 如果ajax接收数据,json数据没有length这个属性,需要转为数组,或者遍历json数据 阅读全文
posted @ 2017-07-26 16:26 杨廷贯 阅读(85) 评论(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 杨廷贯 阅读(226) 评论(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 杨廷贯 阅读(641) 评论(0) 推荐(0) 编辑
  2017年7月1日
摘要: <script> var ary=[]; var ary1=[]; var json=[]; document.getElementById('sub_add').onclick=function(){ var shipNum=document.getElementsByClassName('shi 阅读全文
posted @ 2017-07-01 09:08 杨廷贯 阅读(161) 评论(0) 推荐(0) 编辑
摘要: toFixed() 阅读全文
posted @ 2017-07-01 08:57 杨廷贯 阅读(89) 评论(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 杨廷贯 阅读(148) 评论(0) 推荐(0) 编辑
  2017年6月8日
摘要: { "pages":[ "pages/index/index", "pages/tucao/tucao", "pages/center/center" ], "window":{ "backgroundTextStyle":"", "navigationBarBackgroundColor": "r 阅读全文
posted @ 2017-06-08 10:46 杨廷贯 阅读(579) 评论(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 杨廷贯 阅读(198) 评论(0) 推荐(0) 编辑
  2017年6月2日
摘要: 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 杨廷贯 阅读(211) 评论(0) 推荐(0) 编辑