获取一个元素的值可以有很多方式: 通过ID选择器:$("#txt").val(); 通过class选择器:$(".ipt").val(); 通过属性选择器:$("input[name='uname']").val();
本文共 110 字,大约阅读时间需要 1 分钟。
获取一个元素的值可以有很多方式: 通过ID选择器:$("#txt").val(); 通过class选择器:$(".ipt").val(); 通过属性选择器:$("input[name='uname']").val();
转载地址:http://trybm.baihongyu.com/