<table class="text">
<tr class="li1"><td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 { var defining = { a: function() { }, b: function() { }, c: function() { } }; Object.keys(defining).forEach(key => { window[key] = defining[key]; }); })(); //类似于 $.extend(window,{ a: function() {}, b: function() {}, c: function() {} });