游戏app开发

main.jsbundle生成方法

2016-04-22  本文已影响1716人  iOS_成才录
cd /Users/cjp/Desktop/DemoZC/ios
npm start
curl http://localhost:8081/index.ios.bundle -o main.jsbundle
// swift
let jsCodeLocation = NSBundle.mainBundle().URLForResource("main", withExtension: "jsbundle") //NSURL(string: "http://localhost:8081/index.ios.bundle?platform=ios&dev=true")
main.jsbundle.png
上一篇下一篇

猜你喜欢

热点阅读