@JSMethod(uiThread = true)
public void testText(String come, JSCallback callBack){
    Context context = this.mWXSDKInstance.getContext();
    Context context2 = this.mUniSDKInstance.getContext();
}

 两种方式都可以获取到context,且内容一致,项目中我使用了this.mWXSDKInstance.getContext()来获取。

相关文章:

  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-09-20
  • 2021-08-11
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案