我有一段非常简单的代码:
var psImg_path;
psImBG_path = psImgBG_split[0] + "overlayimages";
alert(psImgBG_path);
但它返回' undefined'。 奇怪的是,如果我提醒psImgBG_split [0],它会返回'图像'。
答案 0 :(得分:0)
正如@Arun P Johny所说
psImBG_path!= psImgBG_path - (Img)错过了变量名称
答案 1 :(得分:0)
var psImg_path;
psImg_path = psImgBG_split[0] + "overlayimages";
alert(psImg_path);