Closed simcookies closed 8 years ago
I want to write test foe some js function, but it need jquery, so If can I load jquery sorce code directly? Like this: cxt.load("XXXX/jquery.min.js") It seems errors come out: V8::Error: Cannot call method 'createElement' of undefined
cxt.load("XXXX/jquery.min.js")
V8::Error: Cannot call method 'createElement' of undefined
The Ruby Racer does not provide a browser environment or a DOM API, those are the responsibility of the embedder. It is just javascript.
I want to write test foe some js function, but it need jquery, so If can I load jquery sorce code directly? Like this:
cxt.load("XXXX/jquery.min.js")
It seems errors come out:V8::Error: Cannot call method 'createElement' of undefined