console.log
works.
By default on iOS, it logs to the debug pane inside Xcode.
From the iOS simulator, press (?+D) and press Remote JS Debugging. This will open a resource, http://localhost:8081/debugger-ui on localhost. From there, use the Chrome Developer tools JavaScript console to view console.log
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…