button没写type=button会导致点击时提交
type 提交 导致 点击 button
2023-06-13 09:15:19 时间
有个地方很奇怪:点击了一个弹窗中的按钮,没想到弹窗消失了,经公司的js高手调试,发现了其中的奥秘
复制代码代码如下:
<buttonclass="btnbtn_set_wj"onclick="add_q()">添加调查问卷</button>
加一个type="button"就好了:
<buttonclass="btnbtn_set_wj"type="button"onclick="add_q()">添加调查问卷</button>
不同的浏览器支持的规则不同
相关文章
- java设置content type_Response Content Type设置[通俗易懂]
- Elasticsearch 8.x中不再支持URL中的type参数
- 访问swagger文档报错Illegal DefaultValue 1024 for parameter type integer,java.lang.NumberFormatException
- SpringMVC 访问controller层出错:No converter found for return value of type: class java.util.HashMap
- ABAP 数据字典里数据元素(Data Element),结构(Structure)和表类型(Table Type)三者的使用辨析试读版
- SAP MM 创建公司间退货STO,系统报错- No delivery type for returns processing assigned to item
- 【错误记录】Kotlin 编译报错 ( Type mismatch: inferred type is String? but String was expected )
- ORA-25959: join index must be of the bitmap type ORACLE 报错 故障修复 远程处理
- ORA-32158: Invalid type passed ORACLE 报错 故障修复 远程处理
- ORA-32332: cannot refresh materialized view “string”.”string” as type evolution has occured ORACLE 报错 故障修复 远程处理
- ORA-39043: Object type string is not supported for string. ORACLE 报错 故障修复 远程处理
- ORA-53000: document type “string” is invalid ORACLE 报错 故障修复 远程处理
- ORA-00317: file type string in header is not log file ORACLE 报错 故障修复 远程处理
- ORA-01754: a table may contain only one column of type LONG ORACLE 报错 故障修复 远程处理
- ORA-06305: IPA: Illegal message type ORACLE 报错 故障修复 远程处理
- ORA-13018: bad distance type ORACLE 报错 故障修复 远程处理
- ORA-15409: All disks in disk group string are not of the same type. ORACLE 报错 故障修复 远程处理
- ORA-19183: FOTY0002: type definition not found ORACLE 报错 故障修复 远程处理
- disabled=”disabled” readonly=”readonly” type=”hidden”提交表单的区别详解编程语言
- 解决Oracle中Type删除的步骤(oracle删除type)
- 分析Oracle中类型解读Type(oracle中的type)