这个地方怎么实现的? 图中的小喇叭,鼠标点击即显示,但是网页源码里面看不到“onclick=”这样的字眼。请问加上“onclick=”的脚本在哪里? 分享到: 更多 ------解决方案--------------------截取部分代码,应该是绑定了class的点击事件 http://csdnimg.cn/rabbit/notev2/js/notify.js self.on('panel_showed', function (e, showDetail) { var hasGet = false, unreadsData; self.resetPosition(); // 显示面板内容 if (unreads !== 0) { self.getUnreads(self.showListCbWrap(function (err, data, loading) { unreads = 0; unreadsData = data.data; })); hasGet = true; } if (!hasReadedItems) { $('.notice_content', self.Dom.wrap).empty(); self.getAllReaded(self.showListCbWrap(function (err, data, loading) { hasReadedItems = true; })); hasGet = true; } if (hasGet) { self.Dom.wrap.one('list_showed', function (e, err) { if (err) { self.error(err); } else { if(showDetail) { var unreadsItem = $('.notice_list_con .unread', self.Dom.wrap); if(unreadsItem.length === 1) { unreadsItem.trigger('click'); } } if (unreadsData && unreadsData.length > 0) { keepUnread = true; setTimeout(function() { self.setReaded(unreadsData); }, 1000); } } }); } }).on('detail_showed', function (e, detail, index) { // 显示通知详情 $('.detail_con .prvnote', self.Dom.wrap).toggleClass('disabled', !(index > 0)); $('.detail_con .nextnote', self.Dom.wrap).toggleClass('disabled', !detail.next()[0]); if (!detail.data('loaded') && !$('dd', detail)[0] && !$('.empty:visible', detail)[0] && !$('.loading:visible', detail)[0]) { self.getDetail(detail); } }).on('tip_showing', function () {