Extjs6 modern formpanel 上传文件 问题

本文探讨了在特定情况下,需要将enableSubmissionForm设为false,以避免Chrome和Firefox浏览器中出现表单提交错误。现代浏览器默认为true,可能导致表单未正确连接至DOM的问题,而经典模式则没有此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

要设置 enableSubmissionForm: false

否则chrome会报 Form submission canceled because the form is not connected" error

火狐更垃圾不报具体错误就是submit后居然调用succss,里面给出json decode错误

https://stackoverflow.com/questions/43000292/getting-form-submission-canceled-because-the-form-is-not-connected-error-in-ch

https://blog.youkuaiyun.com/jpzhu16/article/details/56919491

大概是modern默认为true,就不添加form到dom中(但我查看结构是有的啊)

classic没这么个毛病

enableSubmissionForm : Boolean

bindable

The submission form is generated but never added to the dom. It is a submittable version of your form panel, allowing for fields that are not simple textfields to be properly submitted to servers. It will also send values that are easier to parse with server side code.

If this is false we will attempt to subject the raw form inside the form panel.

Defaults to:

true

 

转载于:https://www.cnblogs.com/coolzdp/p/9947265.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值