1 功能预览
2html 代码
<mpan> <tr> <td> <img onclick = "addType ()" src = "$ {msurl} /images/logo/add.png"> 产品范围 :: </td> <td> <select id = "SelectTypeOne" Data-Otions = "exigido: <td> 一级分类) Data-opções = "Necessário: True"> <Opção selecionado = "Selected"> 全部 </ppthion> </leclect> </td> </tr> <tr> <td> </td> <td id = "typeethree"> </td> </tr> <tr> </td> <tppan> <plang> "TypeOnOnOnersult </tr> <tr> </td> <tspan>" TypeOnOnOnOnOnOnOnersult </span> </t> <tr> </td> <tpan> "TypeOnOnOnOnOnOnOnner (TIPONONERONONERONONERONONERONONONERONONONERONONONERSURN </td> </td> <tpan>" TypeOn- Typener "" id = "typeoneSubResult"> </span> <hr/> </td> </tr> </span>3js 代码
$ ('#selectTypeOne'). ComboBox ({url: config.urlmap.typelist, Valuefield: 'name', textfield: 'name', requerido: true, width: '100', onSelect: function (linha) {typeName1 = row.name $ ('#typeThree'). $ ('#typeonesubResult'). html (""); typename1 + ">" + row.name; name = 'typeThree' value = " + dados [i] .name +" type = 'caixa de seleção'> " + dados [i] .name} $ ('#typeThree'). html (typethrename); $ ('#typeoReResUlS'). html (typename2 +"> "); $ ('#tipo });}})}}); }) // 删除下标元素方式一 Array.prototype.remove = function (dx) {if (isnan (dx) || dx> this.length) {return false; } para (var i = 0, n = 0; i <this.length; i ++) {if (this [i]! } this.splice (dx, 1); } var subtypeName = []; function clinktype (nome) {var index = subtypeName.indexOf (name) if (index == -1) {subtypeName.push (nome); } else {subtypeName.baoremove (index); } $ ('#typeoSubResult'). html (subtypeName.join (",")); }