oPageHref.href = "http://" + bTest?arrSections[i]:"none";
这句语句的运行顺序不是所想的: "http://" + (bTest?arrSections[i]:"none");
相反地是: ( "http://"+bTest)?arrSections[i]:"none";
造成我的困扰.
oPageHref.href = "http://" + bTest?arrSections[i]:"none";
这句语句的运行顺序不是所想的: "http://" + (bTest?arrSections[i]:"none");
相反地是: ( "http://"+bTest)?arrSections[i]:"none";
造成我的困扰.
转载于:https://www.cnblogs.com/norsd/archive/2009/01/22/6359533.html