嘿,每个人都在寻找一些帮助,将 .toFixed 添加到 jquery 中的变量中。
< script type = "text/javascript" > $(document).ready(function() {
var a = $("#address").text();
$.get("http://99.236.215.227:7379/hget/Pool_Stats:CurrentShift:WorkerBTC/" + a + ".txt", function(b) {
$(".payout").text(b)
});
$.get("http://99.236.215.227:7379/hget/Pool_Stats:CurrentShift:WorkerNEOSCoin/" + a + ".txt", function(b) {
$(".payout2").text(b)
});
$.get("http://99.236.215.227:7379/hget/Pool_Stats:CurrentShift:WorkerFUELCoin/" + a + ".txt", function(b) {
$(".payout3").text(b)
})
});
$(function() {
var a = $("#address").text();
$.get("http://99.236.215.227:7379/ZSCORE/Pool_Stats:Balances/" + a, function(b) {
$(".owed").append(b.ZSCORE)
})
}); < /script>