Uncaught TypeError: g is not a function(…)
var g = function (id){
if ( id.substr(0,1) == "."){
return document.getElementsByClassName(id.substr(1));
}
return document.getElementById(id);
}
var g = function (id){
if ( id.substr(0,1) == "."){
return document.getElementsByClassName(id.substr(1));
}
return document.getElementById(id);
}
2016-07-03
举报