我试图将默认值分配给Gijgo Datepicker,但每次我点击它时它都会提交表单,这意味着我无法更改该值。 today = new Date(new Date().getFullYear(), new Date().getMonth(), new Date()').submit();} <script src="https://code.jquery.com/jquery-3.
我正在使用烧瓶来建立一个网站,我想得到客户购买我的产品时的本地日期,并在使用javascript提交时将其添加到表单中。<form id="form" onsubmit="return addTime()" method="post"> // theTriggers when the form is submitted.