我有一个id为id的表单,theForm其中包含以下div,其中包含一个提交按钮:
<div id="placeOrder"
style="text-align: right; width: 100%; background-color: white;">
<button type="submit"
class='input_submit'
style="margin-right: 15px;"
onClick="placeOrder()">Place Order
</button>
</div>
Run Code Online (Sandbox Code Playgroud)
单击时,将placeOrder()调用该函数.该函数将上面div的innerHTML更改为"processing ..."(因此提交按钮现在消失了).
上面的代码有效,但现在的问题是我无法提交表单!我试过把它放在placeOrder()函数中:
document.theForm.submit();
Run Code Online (Sandbox Code Playgroud)
但这不起作用.
我怎样才能提交表格?
下面的代码片段都不适用于clojure 1.6.0
(try
(prn vv)
(catch clojure.lang.ExceptionInfo e (prn "catch e: " e))
(finally (prn "finally") )
)
Run Code Online (Sandbox Code Playgroud)
在阅读了其他一些帖子之后我也尝试了这个:
(try
(doall (prn vv))
(catch clojure.lang.ExceptionInfo e (prn "catch e: " e))
(finally (prn "finally") )
)
Run Code Online (Sandbox Code Playgroud)
我错过了什么?
麦克风