text: ﻿loader.define(function(require, exports, module) {
  
      var citySelect = null,
          citySelect2 = null;
      // 绑定数据
      loader.import("js/plugins/citys.js", function() {
  
          // 普通初始化
          citySelect = bui.levelselect({
              data: citys,
              title: "所在地区",
              trigger: ".selected-val",
              level: 3,
              field: {
                  name: "n",
                  // value: "n",
                  data: ["c", "a"],
              }
          })
  
          // 设置值
          citySelect2 = bui.levelselect({
              data: citys,
              title: "所在地区",
              trigger: ".selected-vals",
              level: 3,
              field: {
                  name: "n",
                  // value: "n",
                  data: ["c", "a"],
              },
              value: ["广东", "广州市", "天河区"]
          })
  
      })
  
      $("#chooseCity").on("click", function() {
          citySelect.show();
      })
      $("#getValue").on("click", function() {
          console.dir(citySelect2.value())
      })
      $("#chooseCity2").on("click", function() {
          citySelect2.show();
      })
  
  })