R顯示字符串中的最後一個字符串,首先它必須顯示第一個如何將最後一個字符放在字符串中的數字值之前,以便它可以顯示在字符串的開頭值如何將字符串中的最後一個字符放在一個字符串中
contentHtml +=
"<td rowspan1=\"" + 1 + "\" class=\"" + (rowspan !== "" && rowspan > 1 ? "groups" : "") + " " + (!isNaN(value) || (!isNaN(value.toString().substr(1, value.length)) || value == "N/A" || value.length < 7 && value.toString().substr(value.length - 1) == '%') ? "text-center" : "text-left") + "\">" + value + (!isNaN(value) ? preFix : "") + color + (!isNaN(value) ? postFix : "") + "</td>";
if (rowspan > 1) {
var rowspanContent = "<td rowspa1=\"" + rowspan + "\" class=\"" + (rowspan !== "" && rowspan > 1 ? "groups" : "") + " " + (!isNaN(value) || (!isNaN(value.toString().substr(1, value.length)) || value == "N/A" || value.length < 7 && value.toString().substr(value.length - 1) == '%') ? "text-center" : "text-left") + "\">" + value + (!isNaN(value) ? preFix : "") + color + (!isNaN(value) ? postFix : "") + "</td>";
}
代碼..........!在問題中發佈。 – Jai
請在將來使用搜索功能:http://stackoverflow.com/questions/5306680/move-an-array-element-from-one-array-position-to-another – RushRed
'postFix'設置爲'R' ? – 31piy