2017-08-17 84 views

回答

0

嘗試

<input type="datetime-local"/> 

<!DOCTYPE html> 
 
<html> 
 
<body> 
 

 
<p> 
 
Depending on browser support:<br> 
 
A date picker can pop-up when you enter the input field. 
 
</p> 
 

 
<form action="/action_page.php"> 
 
    Birthday (date and time): 
 
    <input type="datetime-local" name="bdaytime"> 
 
    <input type="submit" value="Send"> 
 
</form> 
 

 
<p><strong>Note:</strong> type="datetime-local" is not supported in Firefox, or Internet Explorer 12 and earlier versions.</p> 
 

 
</body> 
 
</html>

我輸入datetime類型本地不支持所有瀏覽器。所以odoo會更好地將數據存儲在文本字段中。您可以使用任何自定義庫來進行日期時間選擇器。

相關問題