You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
448 B
19 lines
448 B
5 years ago
|
//log visit
|
||
|
|
||
|
var url=window.location.pathname+window.location.search;
|
||
|
var domain= document.domain;
|
||
|
|
||
|
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: '/log.php',
|
||
|
data: { "url": url,
|
||
|
"domain": domain},//使用这种数组方式的,得加下一句才可以,使用传统方式
|
||
|
traditional: true,
|
||
|
dataType: 'json',
|
||
|
error: function () {
|
||
|
alert('Could not log your visit!');
|
||
|
}
|
||
|
});
|
||
|
|