Including an external javascript library in pebble js file?

后端 未结 3 1841
孤街浪徒
孤街浪徒 2021-01-21 08:41

Is there any way I can include an external JS library in my pebble code? Conventionally on a webpage I would do this in my head tags:



        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-21 09:12

    At present, you cannot include external JS files.

    If you're using CloudPebble, then the only way to do this is to copy and paste the content of the JS library files into your JS file.

    If you're doing native development, you can modify the wscript file to combine multiple JS files into one at build time.

提交回复
热议问题