右鍵菜單插件,我綁定了總的div右鍵沒(méi)有反應(yīng),但是對(duì)提交按鈕右鍵又有反應(yīng)這個(gè)是為什么呢
??? <body>
??????? <div id="divtest">
??????????? <div class="title"><span class="fl">點(diǎn)擊右鍵</span></div>
??????????? <div class="content">
??????????????? <input id="btnSubmit" type="button" value="提交" />
??????????????? <div class="tip"></div>
??????????? </div>
??????????? <div class="contextMenu" id="sysMenu">
??????????????? <ul>
??????????????????? <li id="Li3"><img src="http://img1.sycdn.imooc.com//52e4b34b0001bb6d00160016.jpg" alt="" />保存</li>
??????????????????? <li id="Li4"><img src="http://img1.sycdn.imooc.com//52e4b3680001424900160016.jpg" alt="" />退出</li>
??????????????? </ul>
??????????? </div>
??????? </div>
???????
??????? <script type="text/javascript">
??????????? $(function () {
??????????????? $(".content").contextMenu("sysMenu",
????????????????? { bindings:
???????????????????? {
???????????????????????? 'Li3': function (Item) {
???????????????????????????? $(".tip").show().html("您點(diǎn)擊了“保存”項(xiàng)");
???????????????????????? },
???????????????????????? 'Li4': function (Item) {
???????????????????????????? $(".tip").show().html("您點(diǎn)擊了“退出”項(xiàng)");
???????????????????????? }
???????????????????? }
????????????????? });
??????????? });
??????? </script>
??? </body>
2017-09-12
我知道了,不用了,問(wèn)題怎么刪掉啊