开始学习ionic时,国内教程很多。但很多不是很能照顾到新手。于是想自己开始整理下遇到的问题。
问题1:ionic serve启用浏览器调试时,第一次会跳出ip选项。这个过程自己开始不知道,国内教程也没写到要选哪个。自己乱选了一个。结果浏览器页面无法显示。下面贴solution:
It’s not necessary to edit the code. You can switch between addresses with the command ionic address. You’ll then get options like this:
Please select which address to use by entering its number from the list below:
1) 10.0.1.7 (en1)
2) localhost
直接ionic address就会重新跳出地址选项。记得要选localhost那个,原因暂时未知,猜测可能是占用了端口。
本文解决使用Ionic框架进行浏览器调试时遇到的选择IP地址的问题,通过使用`ionic address`命令,确保选择`localhost`以避免端口冲突。
1230

被折叠的 条评论
为什么被折叠?



