87,992
社区成员
发帖
与我相关
我的任务
分享
function test(pP1) {
alert(pP1[0]); //在本地机正常显示,弹出1
}
test('103');function test(pP1) {
if(typeof(pP1)=='string'){pP1=pP1.split('')}
alert(pP1[0]);
}
function test(pP1) {
alert(pP1); //正常,我都蒙了,这个本来就正常
alert(pP1[0]); //在服务器的代码里弹出undefined,可这里为什么就不正确呢,本来以为很简单的一个case,竟然纠结在这里,想不通
}
test('103');