0
這是我的代碼,但是當它顯示在我的android顯示器上時,它將我的分數更改爲小數,我如何將它保存爲這種格式。分數更改爲十進制
public void readyForJavascript(final String arg) {
webView.loadUrl("javascript:SpinningWheel.addSlot({ " +
"1:1, 2: 5/16, 3: 3/8, 4: 7/16, 5: 1/2, 6: 9/16," +
"7: 5/8, 8: 3/4, 9: 7/8, 10: 1, 11: 1/18, 12: 1/4 });");
webView.loadUrl("javascript:SpinningWheel.addSlot({ " +
"1: 'AM', 2: 'PM'});");
webView.loadUrl("javascript:SpinningWheel.addSlot({ " +
"1: 'AM', 2: 'PM'});");
webView.loadUrl("javascript:SpinningWheel.open();");
}
工作完美 – catalano 2011-04-21 21:56:25