js 如何读取空格

js 如何读取空格

&ltscript&gtvar a="1 2"a=a.search( g) search方法代表 查找设定条件的字符,如果有 返回该字符,如果没有 返回-1alert(a)&ltscri
JavaScript170