ChanneW
V2EX  ›  问与答

安卓的 webview 中能不能做 ajax 请求啊?

  •  
  •   ChanneW · May 5, 2015 · 3444 views
    This topic created in 4219 days ago, the information mentioned may be changed or developed.
    我用 jquery 的 get 完全没响应,也没有错误, 默默的就忽略了。
    2 replies  •  2015-05-05 17:34:12 +08:00
    cfan8
    cfan8
    May 5, 2015
    1
    必须可以,楼主好好检查下代码,是不是没开JS支持,是不是调Android接口没加Annotation
    ChanneW
    ChanneW
    OP
    May 5, 2015
    2
    @cfan8

    js 支持开了,其他部分的 js 都工作正常.
    没有调用与 java 的通信接口,我想用js 的异步请求直接获取 assert 里的文件内容。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2140 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 14:07 · PVG 22:07 · LAX 06:07 · JFK 09:07
    ♥ Do have faith in what you're doing.