代码之家  ›  专栏  ›  技术社区  ›  Hemanthkumar Rajan

Google app maker加载图像

  •  0
  • Hemanthkumar Rajan  · 技术社区  · 7 年前

    1 回复  |  直到 7 年前
        1
  •  1
  •   Pavel Shkleinik    7 年前

    此代码将更新 src img DOM元素并强制浏览器(重新)加载图像:

    // onClick event of some button/widget
    app.currentPage.descendants.ImageWidget.url = 'http://cats.com/myCat.jpg';