表单中name="id",出现jquerymobile样式失效的问题。

本文介绍了一种解决在页面form中使用jQuery Mobile控件时样式出现异常的方法。通过更改特定input元素的name属性,可以避免样式冲突,确保控件正常显示。

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

<input type="hidden" name="idTemp" value="xxxx"/>


页面form中添加以上input后,form中的jquerymobile控件的样式不对了,后来发现name="id"改掉改成name="任意name"就可以了。

在泛微OA中,我想通过ecode平台实现在流程中新增一个按钮,代码如下,为什么没有效果:const { WeaTools, WeaSlideModal } = ecCom; class testComponent extends React.Component { constructor(props) { super(props); this.state = { info: { name: '' }, jsonData: {}, currentObj: {} }; } componentDidMount() { window.WfCustomInfoRef = this; this.getData(); } getData() { const data = { name: "John1", age: 25 }; fetch('/api/workflow/test/getInfo2', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) .then(response => response.json()) .then(data => { this.setState({ jsonData: data }, () => { console.log(this.state.jsonData); }); }) .catch(error => { console.error('请求出错:', error); }); } render() { const { info, jsonData, currentObj } = this.state; return ( <div> 添加的自定义内容2{jsonData.username} <button type= "primary" onClick={()=>{ var requestId = WfForm.getBaseInfo().requestid; jQuery.ajax({ type: "POST", url: "http://192.168.10.129:8089/workflow/request/GetSAPDataAjax.jsp", data: {'requestid':requestId, 'method':"QZgd"}, //dataType: 'json', success:function(data){ console.log(data) // alert(data) }, error:function(data){ alert("系统出现问题,请联系管理员!"); } }) }}>按钮</button> {jsonData.test} </div> ); } } ecodeSDK.setCom('${appId}', 'testComponent', testComponent);在对应的节点通过单元格id控制按钮显示位置: var params = { domId:'btnUpdate',//渲染位置的fieldId id:'eaf7e8a2fe824894a6f81e7d112530c1',//appid name:'testComponent',//调用的组件名称,在setCom中定义的 cb:function(){ //渲染完成后的回调 }, noCss:true, props:{} }
最新发布
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值