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
このオブジェクトをキャストして最終的に文字列を取得するにはどうすればよいですか?
ありがとう