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,
阅读全文
摘要:因为存在跨域问题,现在后台首先获取一个全局Access Token,在获取openid。最后获取到用户的信息返给前端
阅读全文
摘要://轮播一级分类/* $.ajax({ headers: head, type: "GET", url: "", data: {}, dataType: "json", success: function(rest) { //console.log(rest); var parentDataArra
阅读全文
摘要:html部分 <form action="javascript:searchSubmit();"> <input type="search" id="searchKey" name="searchKey" placeholder="输入关键字" /> </form> js部分 function se
阅读全文
摘要:h5中不能用js来获取mac的。是可以获取ip的。代码 <script>var fso = new ActiveXObject("Scripting.FileSystemObject");var wsh = new ActiveXObject("WScript.Shell");wsh.Run("co
阅读全文
摘要://获取浏览器和版本号var userAgent=window.navigator.userAgent, rMsie=/(msie\s|trident.*rv:)([\w.]+)/, rFirefox=/(firefox)\/([\w.]+)/, rOpera=/(opera).+version\/
阅读全文
摘要:var weekArray = ['周一'、'周二'、'周三'、'周四'、'周五']存:localStorage.setItem('weekDay',JSON.stringify(weekArray));取: weekArray = JSON.parse(localStorage.getItem('
阅读全文
摘要:function deviceType(){ var ua = navigator.userAgent; var agent = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; for(var i=0; i<l
阅读全文
浙公网安备 33010602011771号