说是 no best common type exists among return expressions. 怎么改成 常见的?
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); };
2015-06-19
举报