锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩欧美精品一区二区三区经典
,国产一区二区三区高清播放,国产视频一区二区在线播放http://www.aygfsteel.com/dlovek/zh-cnMon, 04 Aug 2025 16:49:25 GMTMon, 04 Aug 2025 16:49:25 GMT60- JS綆鍗旳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>

]]>
主站蜘蛛池模板:
闽侯县|
治多县|
获嘉县|
深水埗区|
峡江县|
卢龙县|
夹江县|
鹤庆县|
高阳县|
城口县|
万全县|
宝鸡市|
南通市|
册亨县|
清水河县|
高州市|
榆林市|
元朗区|
天气|
抚松县|
旌德县|
沅陵县|
彭泽县|
余干县|
龙井市|
伊金霍洛旗|
云龙县|
孝感市|
齐河县|
五台县|
白水县|
儋州市|
临颍县|
安吉县|
酒泉市|
集安市|
正安县|
花莲市|
安徽省|
那坡县|
五家渠市|