When using objectFactory,u may want to call a static method,but would not like to write a mass of interfaces to *Show* the method.Here,it's a way. Code:using System.Reflection; try { Assembly asm =Assembly.Load("FC.Shared.Common"); Type t = asm.GetType("FC.Shared.Common.CMessage"); MethodInfo minfo=t.GetMethod("Send"); Object obj = Activator.Crea...[ 查看全文 ]
1、Using Javascript eval Method。 2、using a veriables save object "this" reference. 3、in innerHTML, we can using String to pass the prototype Method。 e.g. SCRIPT LANGUAGE="JavaScript" !-- function myClass(instanceName) { this.instanceName = insta...[ 查看全文 ]