gpt4 book ai didi

javascript - 引用错误: jQuery is not defined inputmask. js

转载 作者:行者123 更新时间:2023-11-28 03:30:48 25 4
gpt4 key购买 nike

我收到此错误:

Paused on exception ReferenceError: jQuery is not defined

在这一行:

factory(window.dependencyLib || jQuery);

我尝试使用新版本更新文件,但遇到很多错误。

(function (factory) {
if (typeof define === "function" && define.amd) {
define("inputmask", ["inputmask.dependencyLib"], factory);
} else if (typeof exports === "object") {
module.exports = factory(require("./inputmask.dependencyLib"));
} else {
factory(window.dependencyLib || jQuery);
}
}

无限循环页面加载..在本教程之后,我开发了一个应用程序,并将其集成到索引平台中。

屏幕截图错误:

Screenshot error

教程:https://www.sitepoint.com/create-a-poll-with-phpixie/

最佳答案

您在页面上包含了 jQuery 吗?在 tutorial example它将 jQuery 脚本包含在 <head> 之间。标签:

<head>
<title>PHPixie polls</title>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="/style.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>

关于javascript - 引用错误: jQuery is not defined inputmask. js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58204024/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com