src/ZKEACMS.FormGenerator/Scripts/distpicker.js

(开头部分) 130KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*!
 * Distpicker v2.0.1
 * https://github.com/fengyuanchen/distpicker
 *
 * Copyright (c) 2014-2017 Fengyuan Chen
 * Released under the MIT license
 *
 * Date: 2017-09-01T15:38:34.039Z
 */


(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
        typeof define === 'function' && define.amd ? define(['jquery'], factory) :
            (factory(global.jQuery));
}(this, (function ($) {
    'use strict';

    $ = $ && $.hasOwnProperty('default') ? $['default'] : $;

    var DEFAULTS = {
        // Selects the districts automatically.
        // 0 -> Disable autoselect
        // 1 -> Autoselect province only
        // 2 -> Autoselect province and city only
        // 3 -> Autoselect all (province, city and district)
        autoselect: 0,

        // Show placeholder.
        placeholder: true,

        // Select value. Options: 'name' and 'code'
        valueType: 'name',

        // Defines the initial value of province.
        province: '-- 选择省 --',

        // Defines the initial value of city.
        city: '-- 选择市 --',

        // Defines the initial value of district.
        district: '-- 选择区 --'
    };

    var DISTRICTS = {
        100000: {
            110000: '北京市',
            120000: '天津市',
            130000: '河北省',
            140000: '山西省',
            150000: '内蒙古自治区',
            210000: '辽宁省',
            220000: '吉林省',
            230000: '黑龙江省',
            310000: '上海市',
            320000: '江苏省',
            330000: '浙江省',
            340000: '安徽省',
            350000: '福建省',
            360000: '江西省',
后面还有 4364 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。