时间:2021-07-01 10:21:17 帮助过:6人阅读
效果图:

一、使用
1、引用css和js文件
2、初始化class属性为demo1的select元素
3、html代码
这样就完成了插件的调用
二、扩展
一个通用的、初始化数据的js函数:
html代码:
调用:
DataHandler.ashx代码:
<%@ WebHandler Language="C#" Class="DataHandler" %>
using System;
using System.Web;
using System.Collections.Generic;
using Newtonsoft.Json;
public class DataHandler : IHttpHandler {
public void ProcessRequest (HttpContext context) {
var china = new { id = "China", name = "中国" };
var usa = new { id = "USA", name = "美国" };
var rsa = new { id = "Russia", name = "俄罗斯" };
var en = new { id = "English", name = "英国" };
var fra = new { id = "France", name = "法国" };
List
效果:

本文的demo使用的开发环境:VS2013、.NET Framework4.5.
以上就是双向select控件Bootstrap Dual Listbox的使用方法,希望对大家的学习有所帮助。