jsp中如何在选择下拉框里的选项后点击统计按钮出现不同的echarts
<td></td><tdwidth="60">年度/月度</td><tdwidth="60"><selectid="ny"name="ny"onchange="nycha...
<td> </td>
<td width="60">年度/月度</td>
<td width="60">
<select id="ny" name="ny" onchange="nychange($(this).val())">
<option value="nd">年度</option>
<option value="yd">月度</option>
</select>
</td>
<td width="60">
<select id="year" name="year" type="hide" style="display:none;">
<option value="2014">2014</option>
<option value="2015">2015</option>
<option value="2016">2016</option>
<option value="2017">2017</option>
<option value="2018">2018</option>
</select>
</td>
<td width="60"><input class="scBtn" id ="query" type="button" value="统计" onclick="searchClick()" /> </td>
<script type="text/javascript">
//var scClassName = "";
var myChart1 = echarts.init(document.getElementById('main'));
var option1
var myChart2 = ec.init(document.getElementById('pie'));
var option2 展开
<td width="60">年度/月度</td>
<td width="60">
<select id="ny" name="ny" onchange="nychange($(this).val())">
<option value="nd">年度</option>
<option value="yd">月度</option>
</select>
</td>
<td width="60">
<select id="year" name="year" type="hide" style="display:none;">
<option value="2014">2014</option>
<option value="2015">2015</option>
<option value="2016">2016</option>
<option value="2017">2017</option>
<option value="2018">2018</option>
</select>
</td>
<td width="60"><input class="scBtn" id ="query" type="button" value="统计" onclick="searchClick()" /> </td>
<script type="text/javascript">
//var scClassName = "";
var myChart1 = echarts.init(document.getElementById('main'));
var option1
var myChart2 = ec.init(document.getElementById('pie'));
var option2 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询