TypeError: a.replace is not a function 错误

jquery 如果是单属性css(width, width), 
会报:TypeError: a.replace is not a function 错误,查半天要加引号。
css('width', width),
如果是对象形式就不会了:
css({ width : width })
posted @ 2012-12-05 15:15  豪情  阅读(3968)  评论(0编辑  收藏  举报