网页中 如果使用 onclick="this.form.submit();" 无法提交表达,可以使用下面的代码:
 

onclick="document.forms['form'].submit();" 
 

范例:
<form name="search" type="get">
        <input type="hidden" name="m" value="search"/>
  <input type="hidden" name="c" value="index"/>
  <input type="hidden" name="a" value="init"/>
  <input type="hidden" name="typeid" value="1" ><span>搜索</span></div>
</form>

相关文章:

  • 2021-10-06
  • 2021-07-07
  • 2021-07-03
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2021-06-28
相关资源
相似解决方案