以下这一段JS代码规范吗?如果不规范,请指出其不规范的地方:
if(typeof( cfg ) == 'Undefined') {
  //alert();
  var cfg = {};
} else if(typeof(cfg.gVar_swtUrl) == 'Undefined'
  || typeof(cfg.gVar_swtJs) == 'Undefined'
  || typeof(cfg.gVar_qqUrl) == 'Undefined'
  || typeof(cfg.gVar_qqId) == 'Undefined'
  || typeof(cfg.gVar_yyTel) == 'Undefined')
{
  //alert("初始化参数错误!");}
②JS 和JSCRIPT的区别