2

MacOSXダッシュボードの開発は初めてです。これで、IDがb_startのボタンができました。そのボタンをクリックすると、ボタンのラベルが「丸」に変わります。

今、私はこれらを試しましたが、どれも機能しません:

document.getElementById("b_start").label = "Round";
document.getElementById("b_start").text = "Round";
document.getElementById("b_start").innerText = "Round";
document.getElementById("b_start").object.setValue("Round");
document.getElementById("b_start").value = "Round";

ボタンのラベルを変更する方法はありますか?

4

3 に答える 3

1

document.getElementById("b_start").object.setText("Round");

于 2009-08-06T19:53:15.360 に答える
1

私は自分自身の質問を解決しました。これを使用するだけです:

document.getElementById("b_start").object.textElement.innerText = "Round";
于 2009-08-06T12:45:40.660 に答える
0
document.getElementById("b_start").object.setEnabled(false);
于 2010-04-22T01:55:17.807 に答える