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