可以帮助我请jQuery对象问题。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
我如何作出投这个对象,最后得到一个字符串?
感谢的
你试图让' 2012-07-06 03:37:03
Yes!! I want get the string representation!! – Marcelo 2012-07-06 03:40:01