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