javascript通过attachevent和detachevent方法处理带参数的函数