Примеры для jQuery.globalEval()


Execute a script in the global context.

1
2
3
4
5
function test() {
jQuery.globalEval( "var newVar = true;" )
}
test();
// newVar === true