阅读背景:

如何从简单的jsdom函数返回值?

来源:互联网 

I'm using jsdom with jquery, and it's working just fine. However, I'm trying to modularize my code a bit so I don't repeat myself, so I made a basic function out of some jsdom code that takes in some html (DOM), tweaks it with jquery, and spits it back out. However, I'm unable to return my result and thus assign it to a calling var. I'm probably not returning in the right place, but I'm just not seeing the obvious if so. Could use a little help.I'm using jsdom with jquery, and it's working j




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: