phantom = require 'phantom'
phantom.create (ph) ->
ph.createPage (page) ->
page.open "http://www.google.com", (status) ->
console.log "opened google? ", status
page.evaluate (-> document.title), (result) ->
console.log 'Page title is ' + result
ph.exit()
이 웹 사이트를 사용해 보았지만 정확하지는 않습니다. 그것은 모든 곳에서 귀환합니다. http://js2coffee.org/#coffee2jsJavascript에서이 Coffescript 코드와 동일한 것은 무엇입니까?
'js2coffee'는 명시 적으로 반환 값을 중요시하지 않는다고 가정합니다 (coffeescript에 명시 적으로 값을 반환하지 않아야 함). –