半夏浅沫微凉
Follow

After following, you can keep track of his dynamic information in a timely manner

Course notes
  • Courses in the relevant section:Using callbacks to call methods of objects or classes (optional content)

    调用类里面的静态方法 使用call_user_func_array()函数 所有参数必须是在数组中 也就是说要用[]括起来 call_user_func_array(['类名','方法名'],['方法的第一个参数','方法的第二个参数']) 调用类里面的普通方法 使用call_user_func_array()函数 所有参数必须是在数组中 也就是说要用[]括起来 call_user_func_array([对象(new 类名),'方法名'],['方法的第一个参数','方法的第二个参数'])

    2019-10-110个赞