biubiubiu1
V2EX  ›  问与答

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

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

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

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