the_styles ? the_styles.appendTo('head'); the_styles=null : the_styles = $('.stylesheet').detach();显然,这是无效的。注意appendTo()和the_styles=null之间的";“。我如何在一行代码中使用多个这样的表达式呢?
发布于 2010-07-03 02:19:07
我同意glowcoder,但如果你仍然想要它:
the_styles ? function(){ the_styles.appendTo('head'); the_styles=null;}() : the_styles = $('.stylesheet').detach();https://stackoverflow.com/questions/3168136
复制相似问题