zoukankan      html  css  js  c++  java
  • input的type等于mage标签引发的页面提交!

    主要原因是使用了<input type="image",而且放在了<form中。

    <input type="image"标签类似<input type="submit",只要放在form中,执行该按钮就会提交页面。

     

    解决方法:

    1、不使用<input type="image"标签;

    2、在onclick 事件中添加一段“;return false;”的脚本,如下:<input type="image" name="imageField1" id="imageField1" src="../imp/_img_files/search.gif" onclick="openTestList();return false;">

  • 相关阅读:
    ajax理论
    模块
    node.js(1)
    ES6
    data对象
    数组
    对象
    webdriver对应的驱动版本
    TrineaAndroidCommon API Guide
    PV,UV,IP概念
  • 原文地址:https://www.cnblogs.com/liuwenbohhh/p/4341550.html
Copyright © 2011-2022 走看看