biubiubiu1
V2EX  ›  问与答

数据库数据怎么到处成一个.js 文件,其中中文还要转成 Unicode 编码格式。

  •  1
     
  •   biubiubiu1 · Jun 23, 2017 · 2316 views
    This topic created in 3440 days ago, the information mentioned may be changed or developed.

    省市县数据存在数据库中,现在要全部导出成一个.js 文件。给前端使用,各位大神,指点指点!

    SourceMan
    SourceMan
    Jun 23, 2017
    1
    json_encode();
    otakustay
    otakustay
    Jun 23, 2017
    2
    为啥给前端用中文要转成 unicode 编码
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5179 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 02:07 · PVG 10:07 · LAX 18:07 · JFK 21:07
    ♥ Do have faith in what you're doing.