请问下面的代码哪里有问题,为什么点击添加不了信息,是不是JS写错了(已经引用JS库文件了) ,请各位大神帮帮忙,谢谢 <div class="togethercard up added"> <p class="ptit postit added_top" onclick="changeSelect(this)" onselectstart="return false;">POS信息<span class="select"></span></p> <div class="card_con up" onmouseover="delPosShow(this)" onmouseout="delPosHidden(this)"> <p onselectstart="return false;">商户号:<span>8209999999011111</span></p> <p onselectstart="return false;">终端号:<span>777209999999011</span></p> </div> <div class="up_show" onclick="delPos(this)"> <p>删除</p> </div> </div> </div> </div> <script> // 保存新增pos信息 function savePos(){ var businessNo=$("#posBusinessNo").val(); var terminalNo=$("#posTerminalNo").val(); var str='<div class="added">' +'<p class="added_top" onclick="changeSelect(this)" onselectstart="return false;">POS信息<span class="select"></span></p>' +'<div class="up" onmouseover="delPosShow(this)" onmouseout="delPosHidden(this)">' +'<p>商户号:<span>'+businessNo+'</span></p>' +'<p>终端号:<span>'+terminalNo+'</span></p>' +'<div>' +'<div class="up_show" onclick="delPos(this)">' +'<p>删除</p>' +'</div>' +'</div>' $(".pos_con").append(str); document.getElementById('show-gb').style.display="none"; document.getElementById('pos_win').style.display="none"; } </script> <div class="login-bg" id="show-gb"> </div> <!--添加POS信息--> <div class="login relog safe popShowtishi" id="pos_win"> <p class="tit">提示信息<i class="close" onclick="closePos();"></i></p> <div class="merchant"> <p>商户号:<input type="text" id="posBusinessNo"></input></p> <p>终端号:<input type="text" id="posTerminalNo"></input></p> </div> <div class="botto_div"> <a class="pos_botto" href="javascript:void(0);" onclick="newPos()">保存</a> <a class="pos_botto" href="">取消</a> </div> </div>
添加回答
举报
0/150
提交
取消