【发布时间】:2023-03-14 02:28:01
【问题描述】:
Uncaught TypeError: $(...).alpaca is not a function(...)
尝试使用 alpaca 加载 html 页面时出现错误
<!-- alpaca -->
<script src="//code.cloudcms.com/alpaca/1.5.22/bootstrap/alpaca.min.js"></script>
<link href="//code.cloudcms.com/alpaca/1.5.22/bootstrap/alpaca.min.css" rel="stylesheet" />
</head>
<body>
<div id="form"></div>
<script type="text/javascript">
$("#form").alpaca({
"schema": {
"title":"User Feedback",
"description":"What do you think about Alpaca?",
"type":"object",
"properties": {
"name": {
"type":"string",
"title":"Name"
},
"feedback": {
"type":"string",
"title":"Feedback"
},
"ranking": {
"type":"string",
"title":"Ranking",
"enum":['excellent','ok','so so']
}
}
}
});
</script>
</body>
这是我的代码。
我不知道如何解决这个错误。
请帮我清除此错误。
提前致谢
【问题讨论】:
标签: javascript alpacajs