JQuery获取input type="text"中的值的各种方式
如 <div id="aaa">123</div>
$("div").text(); 获取中间的文本,不包括html标签; $("div").html(); 获取中间的所有内容。
转载于:https://blog.51cto.com/9322128/1554175
JQuery获取input type="text"中的值的各种方式
如 <div id="aaa">123</div>
$("div").text(); 获取中间的文本,不包括html标签; $("div").html(); 获取中间的所有内容。
转载于:https://blog.51cto.com/9322128/1554175