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 maxchar = function(s){ | |
var o = {},t = [0,'']; | |
for(var i = 0 , l = s.length; i < l ; i++){ | |
if(o[s[i]]){ | |
o[s[i]] += 1; | |
if(o[s[i]] > t[0]){ | |
t[0] = o[s[i]]; | |
t[1] = s[i]; | |
} | |
}else{ |
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
Array.prototype.strip=function() | |
{ | |
if(this.length<2) return [this[0]]||[]; | |
var arr=[]; | |
for(var i=0;i<this.length;i++) | |
{ | |
arr.push(this.splice(i--,1)); | |
for(var j=0;j<this.length;j++) | |
{ | |
if(this[j]==arr[arr.length-1]) |
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
new function(s) | |
{ | |
if(!arguments.length||!s) return null; | |
if(""==s) return 0; | |
var l=0; | |
for(var i=0;i<s.length;i++) | |
{ | |
if(s.charCodeAt(i)>255) | |
{ | |
l+=2; |
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
<!--HTML--> | |
<div id="blog_wrap"> | |
<div class="side"></div> | |
<div class="post"> | |
<img src="/" alt="图片" style="width:900px;height:100px;"/> | |
</div> | |
</div> | |
<!--JavaScript--> | |
<script> |
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
<!--HTML--> | |
<ul id="J_Item"> | |
<li><a href="#">1</a></li> | |
<li><a href="#">2</a></li> | |
<li><a href="#">3</a></li> | |
<li><a href="#">4</a></li> | |
</ul> | |
<!--JavaScript--> | |
<script> |
NewerOlder