封装 方法 同一个页面共用方法先封装好 再放到全局页面共享

方法有参数  处理传进来的参数

方法没参数  处理其他数据

  

原文地址:https://www.cnblogs.com/zhanglanzuopin/p/12690167.html