使用weexpack构建weex应用时,npm run serve一直报这个错误 ERROR in index.web.js from UglifyJs Unexpected token: name (urlParts) [index.web.js:3754,4] ERROR in App.web.js from UglifyJs Unexpected token: name (urlParts) [App.web.js:3754,4] ERROR in page/web.web.js from…
这次的示例同样也可以说是HelloWorld,只不过不同的是这是web服务器示例. (1)编写web.js,内容如下: var http = require("http") function process_request(req,res){ var body = "hello MrYou!\n"; var content_length = body.length; res.writeHead(200,{ "Content-Length":con…