JavaScript:前端
特效菜單圖標:http://codepen.io/airen/pen/WvxYLK/linux
// JSON 字符串 var foo = ' {"prop": "val"} '; //這是對象字面量 var bar = { prop: "val" };
// JSON 字符串,好比從AJAX獲取字串信息 var ssjson = '{"prop": "val"}'; //將字串序列化成對象 var jsonOb = JSON.parse(ssjson); console.log(jsonOb.prop === 'val'); // 將對象序列化成 JSON 字符串 //重要! 重要! 重要!若是後臺須要提交 JSON,那麼不把對象序列化成JSON字串會報錯 var jsonStr = JSON.stringify(jsonOb);
在線製做網站 logo:https://www.logaster.com/git
Chrome調試參數github
錯誤提示:Cross origin requests are only supported for HTTP.」 error when loading a local fileweb
起一個服務器或在給chrome.exe 加參數 --allow-file-access-from-fileschrome
跨域:--disable-web-securityjson
雲服務:ubuntu
雲計算服務在Google、Amazon等公司成功產品的引領下,正在商業化的道路上大步向前。在NIST的定義中,有三種雲計算服務模型。跨域
可見,三種模型從應用到平臺再到架構,愈來愈底層,用戶獲得的可操做性和靈活性也愈來愈大。服務器
更改ubuntu的inotify:
Yes, it's safe to raise that value and below are the possible costs [source]:
To check the max number of inotify watches:
cat /proc/sys/fs/inotify/max_user_watches
To set max number of inotify watches
Temporarily:
sudo sysctl fs.inotify.max_user_watches=
with your preferred value at the end.Permanently:
echo 524288 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
.http://unix.stackexchange.com/questions/13751/kernel-inotify-watch-limit-reached