标签:
function GetQueryString("url参数名") {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return (r[2]);
return null;
}
decodeURI(GetQueryString("url参数名"))
$(window).scroll(function() {
if ($(window).scrollTop() + $(window).height() == $(document).height()) {
}
});
(价格).toFixed(2)
window.setTimeout(function () {
window.location.href = ‘www.cnblogs.com/huangenai/‘;
}, 2500);
$(document).on(‘touchstart click‘, ".profile_li",function(e) {
e.preventDefault();
});
$(‘#btnOK‘).click(function () {
$.ajax({
type: "POST",
url: ‘/Home/index‘,
data: { }, //参数
datatype: "html",
success: function (data) {
},
error: function () {
}
});
});
<input id="btn" value="获取验证码"/>
var wait = 60;
document.getElementById("btn").disabled = false;
function time(o) {
if (wait == 0) {
o.removeAttribute("disabled");
o.value = "获取验证码";
wait = 60;
} else {
o.setAttribute("disabled", true);
o.value = "重新发送(" + wait + ")";
wait--;
setTimeout(function() {
time(o);
},
1000);
}
}
标签:
原文地址:http://www.cnblogs.com/huangenai/p/5372359.html