摘要:
<div class="img-container"> <div class="img-left"></div> <div class="img-right"></div> </div><style> .img-container{ position: relative; width: 200px; 阅读全文
摘要:
<div onClick="test('yellow')"> CSS Variable</div> CSS :root{ --mainColor:red;} div{ background:black; color:var(--mainColor);} div{ text-align:center; 阅读全文
摘要:
var elClock = document.getElementById("clock");var getTime = function(){ var _ = ['00','01','02','03','04','05','06','07','08','09'], d = new Date(), 阅读全文
摘要:
var COUNT = 0, demo = document.getElementById('demo'); function testFn() {demo.innerHTML += 'testFN 被调用了 ' + ++COUNT + '次<br>';} var throttle = functi 阅读全文
摘要:
https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js http://mynameismatthieu.com/WOW/dist/wow.min.js http://mynameismatthieu.com/ 阅读全文
摘要:
var i;for (i = categoryList.length - 1; i >= 0; i -= 1) { var categoryValue=categoryList[i]; if (categoryValue.doNotDisplayForEMenu==\"true\" ) { cate 阅读全文
摘要:
一,git config core.autocrlf false 二,vi .git/config[remote "origin"] url = https://github.com/iopqrst/learn20140823.git[remote "origin"]url = https://io 阅读全文
摘要:
db.items.aggregate([ { "$project": { "name": 1, "customfield": { "$cond": { "if": { "$eq": [ "$field1", "4" ] }, "then": 30, "else": { "$cond": { "if" 阅读全文
摘要:
function getURL(URL) { return new Promise(function (resolve, reject) { var req = new XMLHttpRequest(); req.open('GET', URL, true); req.onload = functi 阅读全文
摘要:
replace方法的语法是:stringObj.replace(rgExp, replaceText) 其中stringObj是字符串(string),reExp可以是正则表达式对象(RegExp)也可以是字符串(string),replaceText是替代查找到的字符串。。为了帮助大家更好的理解, 阅读全文
摘要:
$cmp,$eq,$gt,$gte,$lt,$lte,$ne$setEquals,$setIntersection,$setUnion,$setDifference,$setLsSubset,$anyElementTrue,$allElemetsTruex: { $cond: { if: { $gt 阅读全文
摘要:
!/bin/shBACK_DB=ALLOUT_DIR=/home/jianyeruan/app/mongo #临时备份目录TAR_DIR=/home/jianyeruan/app/mongotar #备份存放路径DATE=`date +%Y%m%d%H` #获取当前系统时间DB_USER=usern 阅读全文
摘要:
张映 发表于 2013-12-03 分类目录: nosql 标签:mongodb, 备份, 导入, 导出, 还原 张映 发表于 2013-12-03 分类目录: nosql 标签:mongodb, 备份, 导入, 导出, 还原 mongodb数据备份和还原主要分为二种,一种是针对于库的mongodu 阅读全文
摘要:
var options={"upsert":false,"multi":false,'new':false}; 不存是否插入,更新是否批量,返回内容是更新前还是后. permissions.findOne(query, function (err, data) { if (err) return n 阅读全文
摘要:
openssl genrsa -des3 -out server.key 1024openssl req -new server.key -out servr.csr seserver-fnameserver-cityserver-compserver-unittest-vmtest@test-vm 阅读全文
摘要:
var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/Bla 阅读全文
摘要:
<input class="flex-item" id="autocomplete" placeholder="address, zip or city" onFocus="geolocate()" type="text"></input> var autocomplete; function ge 阅读全文
摘要:
# 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 阅读全文