08 2017 档案

摘要:<!DOCTYPE><html lang="zh-CN"> <head> <meta charset="UTF-8"> <!--适用于H5 手机端浏览器--> <meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0, 阅读全文
posted @ 2017-08-21 14:53 田天1 阅读(272) 评论(0) 推荐(0)
摘要:因为存在跨域问题,现在后台首先获取一个全局Access Token,在获取openid。最后获取到用户的信息返给前端 阅读全文
posted @ 2017-08-17 22:41 田天1 阅读(509) 评论(0) 推荐(0)
摘要://轮播一级分类/* $.ajax({ headers: head, type: "GET", url: "", data: {}, dataType: "json", success: function(rest) { //console.log(rest); var parentDataArra 阅读全文
posted @ 2017-08-17 10:53 田天1 阅读(219) 评论(0) 推荐(0)
摘要:html部分 <form action="javascript:searchSubmit();"> <input type="search" id="searchKey" name="searchKey" placeholder="输入关键字" /> </form> js部分 function se 阅读全文
posted @ 2017-08-14 14:41 田天1 阅读(237) 评论(0) 推荐(0)
摘要:h5中不能用js来获取mac的。是可以获取ip的。代码 <script>var fso = new ActiveXObject("Scripting.FileSystemObject");var wsh = new ActiveXObject("WScript.Shell");wsh.Run("co 阅读全文
posted @ 2017-08-09 15:40 田天1 阅读(1049) 评论(0) 推荐(0)
摘要://获取浏览器和版本号var userAgent=window.navigator.userAgent, rMsie=/(msie\s|trident.*rv:)([\w.]+)/, rFirefox=/(firefox)\/([\w.]+)/, rOpera=/(opera).+version\/ 阅读全文
posted @ 2017-08-09 15:31 田天1 阅读(253) 评论(0) 推荐(0)
摘要:var weekArray = ['周一'、'周二'、'周三'、'周四'、'周五']存:localStorage.setItem('weekDay',JSON.stringify(weekArray));取: weekArray = JSON.parse(localStorage.getItem(' 阅读全文
posted @ 2017-08-09 13:51 田天1 阅读(424) 评论(0) 推荐(0)
摘要:function deviceType(){ var ua = navigator.userAgent; var agent = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; for(var i=0; i<l 阅读全文
posted @ 2017-08-09 13:50 田天1 阅读(335) 评论(0) 推荐(0)