可以帮助我解决 jquery 对象问题。
问题如下,我有这个代码:
url = '<a href="http://url.com">Name</a>';
otherValue = "Other Value";
x = jQuery(url).text(otherValue);
console.log(x);
console.log(typeof(x));
这个回报:
[<a href="http://url.com">Other Value</a>]
object
我如何制作这个对象并最终得到一个字符串?
谢谢