
jQuery右键点击指定区域下拉菜单代码插件是一款使用Bootstrap的网页下拉菜单组件来制作,通过简单的配置即可在指定元素上生成右键菜单。
js代码
<script src=\"src/jquery.contextify.js\"></script>
<script>
var options = {items:[
{header: \'右键功能菜单\'},
{divider: true},
{text: \'第一个链接\', href: \'#\'},
{text: \'第二个链接\', onclick: function() {alert(\"你点击了第二个链接\")}},
{text: \'第三个链接\', onclick: function() {alert(\"你点击了第3个链接\")}},
{text: \'第四个链接\', onclick: function() {alert(\"你点击了第4个链接\")}},
{divider: true},
{text: \'更多...\', href: \'#\'}
]}
$(\'.panel-body\').contextify(options);
</script>










暂无评论内容