var a = this.getValue();
if (a == 1) {
window.location = FR.cjkEncode("${servletURL}?viewlet=doc/JS/JS实现排序功能.cpt");
} else if (a == 2) {
window.location = FR.cjkEncode("${servletURL}?viewlet=doc/JS/js实现时钟效果.cpt")
} else {
window.location = FR.cjkEncode("${servletURL}?viewlet=doc/JS/按钮点击修改颜色.cpt")
}
WorkBook102.cpt
看了一下,你的错误应该是出在判断值上面了。a=1是赋值,判断应该是用a==1。