ASP.net(C#) 如何输出javascript下拉菜单的项目
例如:在一个aspx的文件中有如下一段JS代码,其中红色部分的数据需林从数据库中取出?
<script language="javascript" type="text/javascript">
if (mtDropDown.isSupported()) {
var ms = new mtDropDownSet(mtDropDown.direction.down, 0, 0, mtDropDown.reference.bottomLeft);
var menu1 = ms.addMenu(document.getElementById("menu1"));
var menu2 = ms.addMenu(document.getElementById("menu2"));
var menu3 = ms.addMenu(document.getElementById("menu3"));
var menu4 = ms.addMenu(document.getElementById("menu4"));
var menu5 = ms.addMenu(document.getElementById("menu5"));
menu1.addItem("公司介绍", "#");
menu1.addItem("公司机构", "#");
menu1.addItem("领导致词", "#");
mtDropDown.renderAll();
}
</script>