Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

JS Service无法调用 #1513

Closed
RichDaddyCashMany opened this issue Sep 12, 2018 · 2 comments
Closed

JS Service无法调用 #1513

RichDaddyCashMany opened this issue Sep 12, 2018 · 2 comments

Comments

@RichDaddyCashMany
Copy link

按照官方文档编写了一个:KSService.js

原生中也注册了这个service,但是在vue中调用没有反应,是否因为文档中这个JS Service的编写例子不是完整的?

@Hanks10100
Copy link
Contributor

The first argument of service.register (options.KSService in your example) should be the same string with what native registered. The document assumed the options variable is passed form native, it's unnecessary for js service. We'll revise it later.

service.register 的第一个参数应该和 native 注册名称一样的字符串,文档例子里假设客户端已经把 options 变量传过去了(有助于确保注册名一致),其实不是必须的,稍后文档里改掉。

Hanks10100 added a commit to apache/incubator-weex-site that referenced this issue Sep 13, 2018
Hanks10100 added a commit to apache/incubator-weex-site that referenced this issue Sep 29, 2018
* Revise the argument of `service.register`

Refer to apache/incubator-weex#1513

* Fix typo
@chinabrant
Copy link

按照官方文档编写了一个:KSService.js

原生中也注册了这个service,但是在vue中调用没有反应,是否因为文档中这个JS Service的编写例子不是完整的?

你好,我还是跑不起来。官网上关于js service的文档太简单了。可以发个例子看看不?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants