时间:2021-07-01 10:21:17 帮助过:56人阅读
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><title>Document</title><script src="jquery-1.7.1.min.js?1.1.11"></script></head><body><div style="display:none;"> <input type="text" value="11" name="ceshi" class="buytt" /></div><input type="button" value="提交" class="yang" /><script type="text/javascript">$(document).ready(function(){ $(".yang").click(function(){var data = $(".buytt").val(); alert(data); }); });</script></body></html>
2.
以上就是 display:none隐藏后还有数值该怎么办?的详细内容,更多请关注Gxl网其它相关文章!