Skip to content

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

@Hoexhe

Description

@Hoexhe

数据库:

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'
});

去除空字符即可正常

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions