【发布时间】:2011-06-02 22:13:40
【问题描述】:
编写带有自动缩进的代码块。没有手动标签...
$(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>
一个错误还是我遗漏了什么?
【问题讨论】: