js如何准确获取当前页面url网址信息 1、window.location.href(设置或获取整个 URL 为字符串) var test = window.location.href; alert(test); 返回:http://i.cnblogs.com/EditPosts.aspx?opt= Read More
//touch滑屏事件 var windowHeight = $(window).height(), $body = $("body"); $body.css("height", windowHeight); $("body").on("touchstart", function(e) { e.pr Read More
// 回退事件,监听 手机back键和顶部的回退 pushHistory(); window.addEventListener("popstate", function(e) { window.location = '/index.php?m=mobile&c=slimmessage&a=slims Read More