10 2016 档案
mongo virtual
摘要:var options={"upsert":false,"multi":false,'new':false}; 不存是否插入,更新是否批量,返回内容是更新前还是后. permissions.findOne(query, function (err, data) { if (err) return n 阅读全文
posted @ 2016-10-29 11:09 jayruan 阅读(339) 评论(0) 推荐(0)
openssl
摘要:openssl genrsa -des3 -out server.key 1024openssl req -new server.key -out servr.csr seserver-fnameserver-cityserver-compserver-unittest-vmtest@test-vm 阅读全文
posted @ 2016-10-28 11:55 jayruan 阅读(155) 评论(0) 推荐(0)
isMobile
摘要:var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/Bla 阅读全文
posted @ 2016-10-25 11:35 jayruan 阅读(350) 评论(0) 推荐(0)
google api autocomplete
摘要:<input class="flex-item" id="autocomplete" placeholder="address, zip or city" onFocus="geolocate()" type="text"></input> var autocomplete; function ge 阅读全文
posted @ 2016-10-24 23:24 jayruan 阅读(476) 评论(0) 推荐(0)
npm
摘要:# yum install -y gcc-c++ make # curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash - 阅读全文
posted @ 2016-10-24 04:00 jayruan 阅读(115) 评论(0) 推荐(0)
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
摘要:https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform 阅读全文
posted @ 2016-10-20 12:17 jayruan 阅读(238) 评论(0) 推荐(0)
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 阅读全文
posted @ 2016-10-18 00:48 jayruan 阅读(156) 评论(0) 推荐(0)
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 阅读全文
posted @ 2016-10-17 23:51 jayruan 阅读(137) 评论(0) 推荐(0)
eventUtil
摘要:var eventUtil = { // 添加句柄 addHandler: function(element, type, handler) { if(element.addEventListener) { element.addEventListener(type, handler, false) 阅读全文
posted @ 2016-10-17 21:49 jayruan 阅读(167) 评论(0) 推荐(0)
闭包
摘要:function init() { var pAry = document.getElementsByTagName("p"); for( var i=0; i<pAry.length; i++ ) { pAry[i].onclick = function() { alert(i); } } } 解 阅读全文
posted @ 2016-10-15 02:46 jayruan 阅读(114) 评论(0) 推荐(0)
speechSynthesis
摘要:/* $timeout.cancel(timer); */window.speechSynthesis.onvoiceschanged = function(e) { voices = speechSynthesis.getVoices();};window.speechSynthesis.onvo 阅读全文
posted @ 2016-10-10 21:57 jayruan 阅读(1058) 评论(0) 推荐(0)
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 阅读全文
posted @ 2016-10-10 10:39 jayruan 阅读(846) 评论(0) 推荐(0)
sorttable
摘要:http://rubaxa.github.io/Sortable/Sortable.js http://rubaxa.github.io/Sortable/Sortable.min.jshttp://rubaxa.github.io/Sortable/ng-sortable.jshttp://rub 阅读全文
posted @ 2016-10-09 09:12 jayruan 阅读(750) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示