请告诉我为什么我的代码中的jQuery不适用于我的if语句。document.alert( code + "is not a valid imput.")}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.j
我创建了一个document.location的jQuery对象,然后使用attr函数获取搜索属性,以获取所有变量。但是,当我对它使用split函数时,在使用each()之后,它会给出错误,说明该对象没有each方法。object Array] has no method 'each' $(document.location).attr('search').split('&').each()
我还尝试在第一个函数中使用搜索属性我还检查了sp