chrome notify
http://pan.baidu.com/s/17R4t8#dir
电子书
remove duplicate array item
var names = [“Mike”,”Matt”,”Nancy”,”Adam”,”Jenny”,”Nancy”,”Carl”];
var uniqueNames = [];
$.each(names, function(i, el){
if($.inArray(el, uniqueNames) === -1) uniqueNames.push(el);
});
Android
link href=”据对路径 logo48.png” rel=”apple-touch-icon-precomposed”
flot x y axis roate
div.xAxis div.tickLabel {-webkit-transform:rotate(-45deg);font-size:1em;}
//- .flot-tick-label {
//- background:red;
-webkit-transform:rotate(-45deg);font-size:1em;}
var msg = new SpeechSynthesisUtterance();
var voices = window.speechSynthesis.getVoices();
msg.voice = voices[1]; // Note: some voices don’t support altering params
msg.voiceURI = ‘native’;
msg.volume = 1; // 0 to 1
msg.rate = 1; // 0.1 to 10
msg.pitch = 2; //0 to 2
msg.text = ‘Hello World’;
msg.lang = ‘en-US’;
speechSynthesis.speak(msg);
msg.onend = function(e) {
console.log(‘Finished in ‘ + event.elapsedTime + ‘ seconds.’);
};
mustache 解析数组
pre
{{#.}}
…..
{{/.}}
执行函数
{{#someFunction}}someValue{{/someFunction}}
json 中定义
someFunction : function () {
return function(val, render) {
return “I passed in this value: “ + render(val);
}
}