使用自动缩进编写代码块。没有手动标签...
$(document).ready(function() {
$("#welc").toggle(function() {
$(this).val("hello");
}, function() {
$(this).val('hell');
});
});
</script>
得到了这样的结果,但它应该是:
<script type="text/javascript">
$(document).ready(function() {
$("#welc").toggle(function() {
$(this).val("hello");
}, function() {
$(this).val('hell');
});
});
</script>
一个错误或我遗失了什么?