Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试获取 html5 时间输入的值,包括 AM/PM。使用 jquerys .val() 只输出时间。
JS
var $time = $('#start-time-dialog').val();
HTML
<input id="start-time-dialog" type="time">
谢谢