js 查看text 是否包含摸个字符串indexOf('??');

indexOf('??'); 如果为空,范围-1,如果存在则返回??所在位置(注意从0开始数)

原文地址:https://www.cnblogs.com/yanjunwu/p/3026667.html