我想你需要input type="submit"
<input data-dojo-type="dijit.form.Button" data-dojo-props='baseClass:"styleButton"'
name="_action_update" type="submit" value="Save" />
或者,如果你真的需要button
標籤,什麼醜像這應該工作
<button onclick="document.getElementById('yourFormId').submit()" data-dojo-type="dijit.form.Button" data-dojo-props='baseClass:"styleButton"'
name="_action_update" label="Save">Save</button>
或課程,你可以更優雅的附加事件處理程序沒有dom級別0 cruft
<button id="formSubmitBtn" data-dojo-type="dijit.form.Button" data-dojo-props='baseClass:"styleButton"'
name="_action_update" label="Save">Save</button>
document.getElementById("formSubmitBtn").onclick = function() {
document.getElementById('yourFormId').submit();
};