V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
biubiubiu1
V2EX  ›  问与答

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

  •  1
     
  •   biubiubiu1 · Jun 23, 2017 · 1966 views
    This topic created in 3239 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   ·   5692 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 07:39 · PVG 15:39 · LAX 00:39 · JFK 03:39
    ♥ Do have faith in what you're doing.