我试图在 jsp 页面上使用类型为按钮的 dsp:input
标记。
dsp:input
标签支持onclick
功能吗?
最佳答案
根据documentation ,否:
<dsp:input [type="input-control"] [name="input-name"]
bean="property-spec" ["source-spec"]
[checked="{true|false}"]
[default="value"]
[priority=integer-value]
/>
您可以尝试使用以下方式定义您的输入:
<dsp:input>
<dsp:tagAttribute name="onclick" value="..." />
</dsp:input>
关于javascript - DSP 是否为 :input supports onclick?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51041846/