问题描述图片描述浏览器报错,(找不到className,是这个意思吗?),应该怎么解决呢。还有一个问题,传入的值为元素,元素是个什么定义呢?相关代码这是前端页面特性分支 集成分支 历史版本 这是common.js这是方法的调用:functiononloadTable(){varBranchTypeID=getCookie("BranchTypeID");varfeatureLi=document.getElementById("featureLi");varintegrationLi=document.getElementById("integrationLi");varpublishedLi=document.getElementById("publishedLi");varFeature=document.getElementById("Feature");varIntegration=document.getElementById("Integration");varPublished=document.getElementById("Published");if(BranchTypeID==1){//为这个类移除属性addClass(featureLi,"active");removeClass(integrationLi,"active");removeClass(publishedLi,"active");$("#featureA").attr("aria-expanded","true");$("#integrationA").attr("aria-expanded","false");$("#publishedA").attr("aria-expanded","false");addClass(Feature,"active");removeClass(Integration,"active");removeClass(Published,"active");}if(BranchTypeID==2){//为这个类移除属性removeClass(featureLi,"active");addClass(integrationLi,"active");removeClass(publishedLi,"active");removeClass(Feature,"active");addClass(Integration,"active");removeClass(Published,"active");$("#featureA").attr("aria-expanded","false");$("#integrationA").attr("aria-expanded","true");$("#publishedA").attr("aria-expanded","false");}if(BranchTypeID==3){//为这个类移除属性removeClass(featureLi,"active");removeClass(integrationLi,"active");addClass(publishedLi,"active");$("#featureA").attr("aria-expanded","false");$("#integrationA").attr("aria-expanded","false");$("#publishedA").attr("aria-expanded","true");removeClass(Feature,"active");removeClass(Integration,"active");addClass(Published,"active");}setInterval("checkPipelineStatus()",10000);}
呼如林
小唯快跑啊
相关分类