我正在学习JS/Jquery,当单击表单的一部分时,我试图使表单的一部分显示并隐藏起来。我能够打开部分表单,但不能再次关闭它。
因为控制台中没有显示错误。我想知道人们将如何调试这种类型的bug?
表格:
<div class="col col-sm-4 more-options">Detailed options</div>
<div class="row advanced-options">
#part of the form to open and close
</div>
JS/jQuery代码:
$(
我试图针对包含此扩展的代码运行Google闭包编译器:
jQuery.fn.extend({
/** \brief Apply the makeButton() function to a jQuery() object.
*
* This function calls our snapwebsites.Output.makeButton() function
* on all the objects in this jQuery and returns the necessary reference
* to continue the jQue
如果你打开谷歌浏览器,点击地址栏,写下:google.com,然后点击tab,你会得到一个:Search Google for <enter query>。
我在我的网站上试过了,因为我在将表单发送到搜索引擎优化友好的url之前使用了javascript来处理它,所以对我的网站的搜索不起作用,它将我重定向到site.com/?question=test而不是site.com/search/test
有没有办法解决这个问题?