js Reverse notes

1.nodejs run js when
navigator If you can not find the object can be set to null

var navigator={};

2. Use nodejs If the window object can not find the time

May be used jsdom module
3. Object of the top-level code to call this
browser showing window, nodejs said object
in two ways 4. The following attributes of acquired

obj.x //写死代码里

obj["x"] //可以动态调用属性,[]内是字符串

Guess you like

Origin www.cnblogs.com/c-x-a/p/11730578.html