此文為計算新浪Weibo的消息長度的方法
var getMessageLength = (function() {
var byteLength = function(b) {
if(typeof b == "undefined") {
return
}
var a = b
return(b
};
return function(message) {
message = message ||
message = message
var c =
d =
e =
f = message
g = message
h =
for(var i =
var k = byteLength(g[i]);
if(/^(g[i])) {
continue;
}
/^(http://)+(t
f = f
}
var l = Math
return l;
};
})();
getMessageLength(
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20136.html