indexOf('??'); 如果为空,范围-1,如果存在则返回??所在位置(注意从0开始数) 转载于:https://www.cnblogs.com/yanjunwu/archive/2013/04/17/3026667.html