IBM Worklight - Include a JavaScript library on th

2019-04-09 16:14发布

I'm building a mobile application using IBM Worklight. In an adapter, I need to use some functionality which is provided by a third party JavaScript file. I want to know if it's possible to include such a file on the server? If not, what is the alternative?

2条回答
闹够了就滚
2楼-- · 2019-04-09 16:38

At the moment there is no way to include an external JavaScript library in the Adapter code. Currently the only workaround is to copy the library code to the adapter.

查看更多
对你真心纯属浪费
3楼-- · 2019-04-09 17:00

In Worklight 6.0.0, IBM introduced Node.js adapters, touting "a huge selection of third-party modules extending connectivity and providing implementations of various common backend constructs". That sounds like JS library support to me. Details here: https://www.ibm.com/developerworks/community/blogs/worklight/entry/a_preview_of_node_js_adapters_in_worklight_6_0_0?lang=en

查看更多
登录 后发表回答