最新国产好看的视频,伊人天堂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)文章

最新評論

凉城县| 华坪县| 巴青县| 水富县| 焦作市| 治多县| 常德市| 墨脱县| 贵德县| 安阳县| 枞阳县| 纳雍县| 东丰县| 卢龙县| 平舆县| 随州市| 普洱| 从江县| 镇原县| 平南县| 江西省| 辽阳县| 陆良县| 和平区| 兰考县| 杨浦区| 磐石市| 宿松县| 宝清县| 喀喇| 科技| 鸡东县| 敦化市| 长春市| 定安县| 舒城县| 石城县| 西青区| 南康市| 扶绥县| 彭州市|