china-distpicker icon indicating copy to clipboard operation
china-distpicker copied to clipboard

数据库字段使用 char 类型而出现的问题

Open Hoexhe opened this issue 5 years ago • 0 comments

数据库:

PostgreSQL 9.6.8 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18), 64-bit

char 会输出空字符串, 就像如下

$("").distpicker({
  province: '450000        ', // 出现空字符
  city: '450100',
  district: '450107'
});

去除空字符即可正常

Hoexhe avatar May 09 '20 06:05 Hoexhe