10 2016 档案
mongo virtual
摘要:var options={"upsert":false,"multi":false,'new':false}; 不存是否插入,更新是否批量,返回内容是更新前还是后. permissions.findOne(query, function (err, data) { if (err) return n
阅读全文
openssl
摘要:openssl genrsa -des3 -out server.key 1024openssl req -new server.key -out servr.csr seserver-fnameserver-cityserver-compserver-unittest-vmtest@test-vm
阅读全文
isMobile
摘要:var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/Bla
阅读全文
google api autocomplete
摘要:<input class="flex-item" id="autocomplete" placeholder="address, zip or city" onFocus="geolocate()" type="text"></input> var autocomplete; function ge
阅读全文
npm
摘要:# yum install -y gcc-c++ make # curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash -
阅读全文
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
摘要:https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
阅读全文
regexxx
摘要:var test={ msg:{ "name":"name","value":"value" }}var str=JSON.stringify(test); //var testJson=JSON.parse(str); //console.log(testJson) var res = str.r
阅读全文
RegExp
摘要:var str = "1a1b1c";var reg = new RegExp("1(.)", "g");alert(reg.test(str)); // truealert(reg.test(str)); // true/*alert(reg.test(str)); // truedalert(r
阅读全文
eventUtil
摘要:var eventUtil = { // 添加句柄 addHandler: function(element, type, handler) { if(element.addEventListener) { element.addEventListener(type, handler, false)
阅读全文
闭包
摘要:function init() { var pAry = document.getElementsByTagName("p"); for( var i=0; i<pAry.length; i++ ) { pAry[i].onclick = function() { alert(i); } } } 解
阅读全文
speechSynthesis
摘要:/* $timeout.cancel(timer); */window.speechSynthesis.onvoiceschanged = function(e) { voices = speechSynthesis.getVoices();};window.speechSynthesis.onvo
阅读全文
wap ..
摘要:function uaredirect(f){try{if(document.getElementById("bdmark")!=null){return}var b=false;if(arguments[1]){var e=window.location.host;var a=window.loc
阅读全文
sorttable
摘要:http://rubaxa.github.io/Sortable/Sortable.js http://rubaxa.github.io/Sortable/Sortable.min.jshttp://rubaxa.github.io/Sortable/ng-sortable.jshttp://rub
阅读全文