首页 > 代码库 > select改变执行操作

select改变执行操作

<select onchange="changeBottomTimeScale(this.value)" style="margin-right : 20px;">
    <option value="year"></option>
    <option value="halfyear">半年 </option>
    <option value="quarter">季度 </option>
    <option value="month"></option>
    <option value="week"></option>
    <option value="day" selected></option>
    <option value="hour"></option>
</select >
function changeBottomTimeScale(value) {
    gantt.setBottomTimeScale(value)
}