在cityPicker.js里添加方法

setValue: function(address){  
            this.$element.val(address).trigger('change');
        },

citypicker插件不可以赋值

赋值时调用下面方法:

$("#city-picker3").citypicker("setValue", "newValue");

 

本方法来自:https://www.cnblogs.com/angelshelter/p/6083066.html

多谢原博主分享~~

相关文章:

  • 2022-01-19
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-11
  • 2021-05-24
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
相关资源
相似解决方案