V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
alan9090
V2EX  ›  编程

网页兼容性问题,在 IE 页面功能正常,在火狐和 360 就不正常

  •  
  •   alan9090 · Mar 23, 2016 · 2046 views
    This topic created in 3691 days ago, the information mentioned may be changed or developed.

    TypeError: document.forms[0].showList.options is not a function

    function func_select_all1() { for (i=document.forms[0].showList.options.length-1; i>=0; i--) document.forms[0].showList.options(i).selected=true; }

     <html:select   property="showList"   multiple="true" ondblclick="func_delete();"  style="width:200;height:280" >   
    <html:options   collection="showList"   property="moduleid"   labelProperty="mytableStandardmodule.displayname"></html:options>   
    

    </html:select>

    <input type="button" value=" 全 选 " onClick="func_select_all1();" class="SmallInput" id="button2">
    </td>
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2556 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 12:32 · PVG 20:32 · LAX 05:32 · JFK 08:32
    ♥ Do have faith in what you're doing.