Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我单击嵌入的 SendButton 时,我收到以下代码语句中出现的错误“Invalid Argument”:“a.width(b.style.width+'px');”。它发生在 InternetExplorer9 中。我该如何解决这个问题?谢谢
尝试以下两种方法之一:
a.width((0 + b.style.width) +'px'); a.width(parseInt(b.style.width) +'px');
否则,请确保“b”是一个对象,它附加了样式信息等。