Bootstrap table右键功能实现方法
发布时间:2020-12-18 00:40:53 所属栏目:安全 来源:网络整理
导读:最近遇到有一个需求,需要在Bootstrap table上使用右键。网上搜了半天没有找到,最后发现Bootstrap table不支持右键(官方文档给出的答案 )。 本文介绍使用contextMenu插件实现Bootstrap table右键功能。 代码(test.html): script src="libs/jQuery/jquery-1
最近遇到有一个需求,需要在Bootstrap table上使用右键。网上搜了半天没有找到,最后发现Bootstrap table不支持右键(官方文档给出的答案 )。 本文介绍使用contextMenu插件实现Bootstrap table右键功能。 代码(test.html):
<script src="libs/jQuery/jquery-1.8.3.min.js"> <script src="libs/bootstrap-table-v1.11.0/bootstrap.min.js"> <script src="libs/bootstrap-table-v1.11.0/bootstrap-table.js"> <script src="libs/bootstrap-table-v1.11.0/bootstrap-table-zh-CN.js"> <script src="libs/jQuery-contextMenu/dist/jquery.contextMenu.js"> <table id="item_table"></table> |