锘??xml version="1.0" encoding="utf-8" standalone="yes"?>91麻豆精品国产91久久久更新资源速度超快 ,成人久久精品视频,久久国产精品高清一区二区三区http://www.aygfsteel.com/dlovek/zh-cnWed, 18 Jun 2025 15:01:05 GMTWed, 18 Jun 2025 15:01:05 GMT60JS綆鍗旳OP瀹炵幇(杞級http://www.aygfsteel.com/dlovek/archive/2007/04/11/109918.html楹﹀楹﹀Wed, 11 Apr 2007 07:32:00 GMThttp://www.aygfsteel.com/dlovek/archive/2007/04/11/109918.htmlhttp://www.aygfsteel.com/dlovek/comments/109918.htmlhttp://www.aygfsteel.com/dlovek/archive/2007/04/11/109918.html#Feedback0http://www.aygfsteel.com/dlovek/comments/commentRss/109918.htmlhttp://www.aygfsteel.com/dlovek/services/trackbacks/109918.html 1    1<script>  
 2    2.       
 3    3.     function Test(){  
 4    4.         this.say1 =  function(s){  
 5    5.             alert(s);  
 6    6.         }  
 7    7.         this.say2 =  function(s){  
 8    8.             alert(s);  
 9    9.         }  
10   10.     }  
11   11.   
12   12.     function actsAsAspect(object) {  
13   13.       object.yield = null;  
14   14.       object.rv    = { };  
15   15.       object.before  = function(method, f) {  
16   16.         var original = eval("this." + method);  
17   17.         this[method] = function() {  
18   18.           f.apply(this, arguments);  
19   19.           return original.apply(this, arguments);  
20   20.         };  
21   21.       };  
22   22.       object.after   = function(method, f) {  
23   23.         var original = eval("this." + method);  
24   24.         this[method] = function() {  
25   25.           this.rv[method] = original.apply(this, arguments);  
26   26.           return f.apply(this, arguments);  
27   27.         }  
28   28.       };  
29   29.       object.around  = function(method, f) {  
30   30.         var original = eval("this." + method);  
31   31.         this[method] = function() {  
32   32.           this.yield = original;  
33   33.           return f.apply(this, arguments);  
34   34.         }  
35   35.       };  
36   36.     }  
37   37.       
38   38.     function beforeHander(s){  
39   39.         alert("aspect said:");  
40   40.     }  
41   41.     function afterHander(s){  
42   42.         alert("said by aspect");  
43   43.     }  
44   44.   
45   45.     var t = new Test();  
46   46.     actsAsAspect(t);  
47   47.     t.before("say1",beforeHander);  
48   48.     t.after("say2",afterHander);  
49   49.       
50   50.     test = function(){  
51   51.         t.say1("hello1");  
52   52.         t.say2("hello2");  
53   53.     }  
54   54.     test();  
55   55</script>  


楹﹀ 2007-04-11 15:32 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 衡阳县| 洞头县| 铜鼓县| 湛江市| 贵定县| 吉林省| 凤山市| 靖安县| 宾川县| 两当县| 容城县| 鄂伦春自治旗| 和平区| 禹州市| 渑池县| 仙居县| 赣榆县| 黄浦区| 宁武县| 印江| 商洛市| 江安县| 灵璧县| 凤城市| 江孜县| 五华县| 阿巴嘎旗| 平安县| 平舆县| 和顺县| 甘孜县| 本溪市| 东莞市| 依安县| 年辖:市辖区| 万安县| 疏附县| 淳安县| 凤山县| 斗六市| 平和县|