Giter Site home page Giter Site logo

Comments (9)

progrape avatar progrape commented on May 17, 2024

可以用 jssdk 的方法 wx.closeWindow()

from weui.js.

strongant avatar strongant commented on May 17, 2024

jssdk 是不是需要引入才可以使用?

from weui.js.

progrape avatar progrape commented on May 17, 2024

是的,使用方式详见 https://mp.weixin.qq.com/wiki 微信网页开发——微信JS-SDK说明文档

from weui.js.

strongant avatar strongant commented on May 17, 2024

麻烦问一下其它功能不需要,就单独的关闭页面操作,不使用微信JS-SDK操作,常规方法是不生效的?

from weui.js.

progrape avatar progrape commented on May 17, 2024

常规的 windows.close() 估计不生效,但是可以试试 WeixinJSBridge.invoke('closeWindow'); 。在微信内有 WeixinJSBridge 对象,closeWindow 好像不用签名鉴权

from weui.js.

strongant avatar strongant commented on May 17, 2024

谢谢你,刚才试了一下是可以的。:gift_heart:

from weui.js.

progrape avatar progrape commented on May 17, 2024

不客气~

from weui.js.

kimi009 avatar kimi009 commented on May 17, 2024

ios 貌似不生效

from weui.js.

wangfpp avatar wangfpp commented on May 17, 2024

IOS不生效 有什么办法可以解决吗

from weui.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.