V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
biubiubiu1
V2EX  ›  问与答

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

  •  1
     
  •   biubiubiu1 · 2017-06-23 10:00:34 +08:00 · 1764 次点击
    这是一个创建于 3092 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    SourceMan
        1
    SourceMan  
       2017-06-23 10:10:26 +08:00
    json_encode();
    otakustay
        2
    otakustay  
       2017-06-23 11:10:20 +08:00
    为啥给前端用中文要转成 unicode 编码
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5643 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 02:58 · PVG 10:58 · LAX 18:58 · JFK 21:58
    ♥ Do have faith in what you're doing.