[toc](目录)1.前言此实例是根据选择年份计算出生肖,使用到Menu控制通用属性,使用Excel编写简单函数快速生成MenuItem数据。2.效果3.功能点击文本框,弹出菜单选择年份,点击计算按钮算出选择年份对应生肖。4.讲解1.定义十二生肖数组javascript十二生肖数组privatezodiac:Array["猴","鸡","狗","猪","鼠","牛","虎","兔","龙","蛇","马","羊"];2.定义年份和计算出来生肖变量javascript存储选择年份Stateyear:number2022计算出来...