This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>demo</title> | |
<style type="text/css" media="screen"> | |
</style> | |
</head> | |
<body> | |
<div id="test"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>demo</title> | |
<meta charset='utf-8'/> | |
<style type="text/css" media="screen"> | |
</style> | |
</head> | |
<body> | |
<div id="test"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<HTML> | |
<HEAD> | |
<TITLE>Diff, Match and Patch: Demo of Diff</TITLE> | |
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="http://google-diff-match-patch.googlecode.com/svn/trunk/javascript/diff_match_patch_test.js"></SCRIPT> | |
</HEAD> | |
<BODY> | |
<H1>Diff, Match and Patch</H1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>test page</title> | |
<script type='text/javascript'> | |
<!-- | |
方法 运行时间(ms) | |
方法一 93037 | |
方法二 3341 | |
方法三 2795 | |
方法四 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var options = { | |
host: 'www.google.com', | |
port: 80, | |
path: '/index.html' | |
}; | |
http.get(options, function(res) { | |
if (res.statusCode == 200) { | |
console.log("success"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shell 获取当前目录 | |
设置环境变量 | |
打印环境变量 | |
%0 是指批处理文件本身 | |
%~dp0 是对%0的扩展,d是drive,也就是盘符,p是路径,所以%~dp0是指批处理所在的路径(包括盘符) | |
pushd是设定工作目录 | |
所以 PUSHD %~dp0 就是设定批处理所在的目录为工作目录 | |
"%~dp00PE_0606_for_ud"也就是批处理所在目录下0PE_0606_for_ud目录 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo welcome to att3 alpha... | |
path %PATH%;%~dp0..\node\bin\ | |
path %PATH%;%~dp0tools\ | |
node test.js | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var spawn = require('child_process').spawn; | |
var cmds = [["/c","dir"],["/c","java"],["/c","java","-jar"]] | |
cmds.forEach(function(v){ | |
v && exe(v); | |
}); | |
function exe(command){ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
获取当前路径 && 路径转换 | |
*/ | |
var cwd = process.cwd(); | |
console.log("-----------------------"); | |
console.log("cwd:",cwd); | |
console.log("-----------------------"); | |
console.log("-----------------------"); |
OlderNewer