3

コードビハインドでボタンクリックイベントの最後にJavaScript関数を呼び出すにはどうすればよいですか?

4

2 に答える 2

6

.NETで作業している場合は、試すことができます

ScriptManager.RegisterClientScriptBlock(myButton, this.GetType(), "BlockName", "alert('hello world');", true);
于 2009-02-12T13:03:09.627 に答える
-1

あなたはおそらくonmouseupイベントが欲しいでしょう:

<button onmouseup="alert('You release the mouse button!')">Click me</button>
于 2009-02-12T12:59:10.010 に答える