jQuery 标签 jquery.bs_label

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-03 11:12:11

软件介绍

已作http://www.oschina.net/p/jQuery-eventModuleCraft的一个模块

jquery.bs_label 调用即可自动生成标签,点标签调用回调,简单的生成一组标签使用。

使用方法

初始化:
$("#dome").bs_label({
    //label数据
    "data": [
        {"val": "a", "name": "a", "type": "default"},
        {"val": "b", "name": "b", "type": "primary"},
        {"val": "c", "name": "c", "type": "success"},
        {"val": "d", "name": "d ", "type": "info"},
        {"val": "e", "name": "e", "type": "warning"},
        {"val": "f", "name": "f", "type": "danger"}
    ],
    //加载后自动点击的label的val
    "clickVal": "a",
    //点击后的回调
    "callBack": function (e, dName, dVal) {
        console.log(arguments);
    }
});
选择一个标签
$("#dome").bs_label("checked","f")
切换禁用
$("#dome").bs_label("disable"[,true/false])

本文地址:https://codercto.com/soft/d/22561.html

Web Security Testing Cookbook

Web Security Testing Cookbook

Paco Hope、Ben Walther / O'Reilly Media / 2008-10-24 / USD 39.99

Among the tests you perform on web applications, security testing is perhaps the most important, yet it's often the most neglected. The recipes in the Web Security Testing Cookbook demonstrate how dev......一起来看看 《Web Security Testing Cookbook》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

html转js在线工具
html转js在线工具

html转js在线工具