最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

修復(fù)jQuery tablesorter無法正確排序的bug(加千分位數(shù)字后)

 更新時間:2016年03月30日 11:18:28   投稿:mrr  
這篇文章主要介紹了如何修復(fù)jQuery tablesorter無法正確排序的bug(加千分位數(shù)字后)的相關(guān)資料,需要的朋友可以參考下

找到函數(shù):

function getElementText(config, node) {
var text = "";
if (!node) return "";
if (!config.supportsTextContent) config.supportsTextContent = node.textContent || false;
if (config.textExtraction == "simple") {
if (config.supportsTextContent) {
text = node.textContent;
} else {
if (node.childNodes[0] && node.childNodes[0].hasChildNodes()) {
text = node.childNodes[0].innerHTML;
} else {
text = node.innerHTML;
}
}
} else {
if (typeof(config.textExtraction) == "function") {
text = config.textExtraction(node);
} else {
text = $(node).text();
}
}
return text;
}

把上邊的function改成下邊的即可:

function getElementText(config, node) {
var text = "";
if (!node) return "";
if (!config.supportsTextContent) config.supportsTextContent = node.textContent || false;
if (config.textExtraction == "simple") {
if (config.supportsTextContent) {
text = node.textContent;
} else {
if (node.childNodes[0] && node.childNodes[0].hasChildNodes()) {
text = node.childNodes[0].innerHTML;
} else {
text = node.innerHTML;
}
}
} else {
if (typeof(config.textExtraction) == "function") {
text = config.textExtraction(node);
} else {
text = $(node).text();
}
}
return (text.replace(/,/g,''));
}

以上內(nèi)容是小編給大家介紹的修復(fù)jQuery tablesorter無法正確排序的bug,希望對大家有所幫助!

相關(guān)文章

最新評論

廊坊市| 徐水县| 福海县| 菏泽市| 上虞市| 肇州县| 高淳县| 建始县| 河池市| 获嘉县| 朝阳县| 英超| 元江| 旺苍县| 黄梅县| 曲水县| 田阳县| 通化市| 云阳县| 浪卡子县| 三台县| 岱山县| 工布江达县| 聊城市| 澳门| 乌鲁木齐市| 柘荣县| 木里| 巴林右旗| 昭平县| 新乡县| 青神县| 古浪县| 瓦房店市| 衢州市| 宝丰县| 沙洋县| 古浪县| 常山县| 桦南县| 新闻|