考察以下程序片段:var str = “12px”;var s = str.indexof(“2”);alert(s);以下选项正确的是()?

A.输出 2 B.输出 1 C.输出 p D.输出 12

时间:2024-03-17 17:41:30

相似题目