parseInt(str) 字符串转int attachEvent和addEventListener [url]http://blog.csdn.net/fisher_jiang/article/details/2139089[/url]