This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _user01 = [ | |
{'id': '11', 'name': 'fame'}, | |
{'id': '11'}, | |
{'id': '22'} | |
] | |
var _user02 = [ | |
{'id': '11', 'name': 'fame', 'sex': 'famle'}, | |
{'id': '11', 'sesd':'2343'}, | |
{'id': '22'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _user = [ | |
{'id': '11', 'name': 'fame'}, | |
{'id': '11'}, | |
{'id': '22'} | |
], | |
newArr = [] | |
for(var i = 0,len = _user.length; i < len; i++){ | |
for(var j = i + 1; j < len; j++){ | |
if(_user[i]['id'] == _user[j]['id']){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*<tabs> //expalme | |
<pane title="First Tab"> | |
<div><h4>This is the content of the first tab.</h4></div> | |
</pane> | |
<pane title="Second Tab"> | |
<div>This is the content of the second tab.</div> | |
</pane> | |
</tabs> | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*goto top*/ | |
.gotop{ | |
position: absolute; | |
right: -148px; | |
bottom: 30px; | |
color: #000; | |
width: 124px; | |
z-index: 999; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 弹层 | |
document.onclick = function(e){ | |
$('.product_info').removeClass('cur'); | |
} | |
$('.product_info').click(function(e){ | |
e = e||event; stopFunc(e); | |
}); | |
$(".arrow-link").click(function(e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<script type="text/javascript" src="http://cdn.staticfile.org/jquery/1.9.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
<script type="text/javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>sku</title> | |
<meta name="keywords" content="关键字" /> | |
<meta name="description" content="页面描述" /> | |
<style type="text/css"> | |
.bh-sku-selected {color: red;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.dome = (function() { | |
function Dome(els) { | |
for(var i = 0; i < els.length; i++) { | |
this[i] = els[i]; | |
} | |
this.length = els.length; | |
} | |
var dome = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addByTransDate(dateParameter, num) { | |
var translateDate = "", | |
dateString = "", | |
monthString = "", | |
dayString = ""; | |
translateDate = dateParameter.replace("-", "/").replace("-", "/");; | |
var newDate = new Date(translateDate); | |
newDate = newDate.valueOf(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Date.prototype.Format = function(fmt) { | |
var o = { | |
"M+" : this.getMonth()+1, //月份 | |
"d+" : this.getDate(), //日 | |
"h+" : this.getHours(), //小时 | |
"m+" : this.getMinutes(), //分 | |
"s+" : this.getSeconds(), //秒 | |
"q+" : Math.floor((this.getMonth()+3)/3), //季度 | |
"S" : this.getMilliseconds() //毫秒 | |
}; |
NewerOlder