使用is.js时出现jquery问题

时间:2016-07-09 16:59:55

标签: javascript jquery

在我的HTML中使用库is.js时,我的jquery引发了一堆错误。这因此带来了bootstrap的问题。 is.js具有浏览器检测功能,我需要使此更新与所有浏览器兼容。我的代码格式正确,所以我不需要分享。但这里有截图

HTML中不包含is.js:

Without is.js included in HTML

包含is.js:

With is.js included

看到区别在于,当包含is.js时它不显示。但我需要它与所有浏览器兼容。

导致Jquery抛出的错误

  

jquery.js:2090 Uncaught TypeError:matchExpr [type] .exec不是函数   jquery.js:5932未捕获的TypeError:value.call不是一个函数(最近在Jquery上面移动了库的位置后调用 - 现在为void)

新的脚本顺序

+-----+---------+-------+------------+-------------------------+-------------------------+----------+------------+---------+
| id  | room_id | price | date       | created_at              | updated_at              | saleable | annotation | state   |
+-----+---------+-------+------------+-------------------------+-------------------------+----------+------------+---------+
| 267 | 23      | 1500  | 2016-07-11 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 268 | 23      | 2000  | 2016-07-12 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 269 | 23      | 1500  | 2016-07-13 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 270 | 23      | 2000  | 2016-07-14 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 294 | 21      | 2000  | 2016-07-14 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 271 | 23      | 1500  | 2016-07-15 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 295 | 21      | 1500  | 2016-07-15 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 296 | 21      | 2500  | 2016-07-16 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 345 | 29      | 2500  | 2016-07-16 | 2016-07-06 18:19:22 UTC | 2016-07-06 18:19:22 UTC | false    |            | pending |
| 272 | 23      | 1500  | 2016-07-16 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 16  | 5       | 2500  | 2016-07-16 | 2016-07-06 18:19:18 UTC | 2016-07-06 18:19:18 UTC | false    |            | pending |
| 17  | 5       | 1500  | 2016-07-17 | 2016-07-06 18:19:18 UTC | 2016-07-06 18:19:18 UTC | false    |            | pending |
| 297 | 21      | 1500  | 2016-07-17 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 346 | 29      | 1000  | 2016-07-17 | 2016-07-06 18:19:22 UTC | 2016-07-06 18:19:22 UTC | false    |            | pending |
| 46  | 3       | 2500  | 2016-07-17 | 2016-07-06 18:19:19 UTC | 2016-07-06 18:19:19 UTC | false    |            | pending |
| 273 | 23      | 1500  | 2016-07-17 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 274 | 23      | 1000  | 2016-07-18 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |
| 298 | 21      | 2000  | 2016-07-18 | 2016-07-06 18:19:21 UTC | 2016-07-06 18:19:21 UTC | false    |            | pending |

(抛出新错误)

旧脚本顺序

<script type="text/javascript" src="js/is.min.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>

仅抛出第一个错误

0 个答案:

没有答案