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.
我想仅使用 javascript 示例将天数添加到特定日期:
textbox1.text=10-04-2013 textbox2.text=30 textbox3.text=10-05-2013
You can use this
var yourDate= new Date(); var numberOfDaysToAdd = 6; someDate.setDate(yourDate.getDate() + numberOfDaysToAdd);