[英]How can I add a fadeIn effect to a string in jQuery?
I've got the following string that increments my integer contained within a paragraph, and I'd like to append the fadeIn() jQuery function to it. 我得到了以下字符串,该字符串增加了段落中包含的整数,并且我想在其后面附加fadeIn()jQuery函数。 I've tried to concatenate it to the end of the string, but that didn't work. 我试图将其连接到字符串的末尾,但这没有用。 Any suggestions on what to do here? 有什么建议在这里做什么?
$p.text(parseInt($p.text(),10) + 1);
尝试
$p.text(parseInt($p.text(),10) + 1).hide().fadeIn();
尝试$p.text(parseInt($p.text(),10) + 1).hide().fadeIn();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.