http://www.w3schools.com/cssref/playit.asp?filename=playcss_background-size&preval=cover
background-repeat:no-repeat;
background-size:cover;
background-repeat:no-repeat;
background-size:cover;
function execute(someFunction, value) { someFunction(value); } execute(function(word){ console.log(word) }, "Hello");我們在 execute 接受第一個參數的地方直接定義了我們準備傳遞給 execute 的函數。
var http = require("http"); http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.write("Hello World"); response.end(); }).listen(8888);現在它看上去應該清晰了很多:我們向 createServer 函數傳遞了一個匿名函數。
var http = require("http"); function onRequest(request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.write("Hello World"); response.end(); } http.createServer(onRequest).listen(8888);
cd /path/to/my/repo
git remote add origin ssh://git@bitbucket.org/username/bbreponame.git
git push -u origin --all
mkdir /path/to/your/project
cd /path/to/your/project
git init
git remote add origin ssh://git@bitbucket.org/username/bbreponame.git