📄 pagehits.js
字号:
var xmlHttpst;
function create(){
var xmlHttp = false;
try {
xmlHttp = new XMLHttpRequest();
} catch (trymicrosoft) {
//renren
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (othermicrosoft) {
try {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (failed) {
xmlHttp = false;
}
}
}
return xmlHttp;
}
function callServerByPostSt(url) {
xmlHttpst = create();
xmlHttpst.open("POST", url, true);
xmlHttpst.onreadystatechange = handleStateChangeSt;
xmlHttpst.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlHttpst.send("pageID="+pageHitsID);
}
function handleStateChangeSt(){
if(xmlHttpst.readyState == 4){
//alert(xmlHttpst.responseText);
}
}
callServerByPostSt("/NCL/global/inc/pageHits.jsp");
function CreateFile(test)
{
var fso, tf;
fso = new ActiveXObject("Scripting.FileSystemObject");
tf = fso.CreateTextFile("c:\\testfile.txt", true);
// 写一行,并且带有新行字符。
tf.WriteLine("Testing 1, 2, 3."+test) ;
// 向文件写三个新行字符。
tf.WriteBlankLines(3) ;
// 写一行。
tf.Write ("This is a test.");
tf.Close();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -