Javascript 将图形插件与项目集成后从图形插件中获取异常
我使用了chart.js绘制图表,并使用了以下插件。Javascript 将图形插件与项目集成后从图形插件中获取异常,javascript,jquery,web,plugins,chart.js,Javascript,Jquery,Web,Plugins,Chart.js,我使用了chart.js绘制图表,并使用了以下插件。 <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script><br/> <script src
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script><br/>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script><br/>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script><br/><br/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script><br/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script><br/>
<script src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script><br/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:400,800"><br/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"><br/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"><br/>
<link rel="stylesheet" href=https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css><br/>
我已经实现了一个示例代码,并获得了预期的图形。
但与我的项目集成的代码相同,我得到以下错误
未捕获类型错误:无法读取未定义的属性“unobtrusive”位于Object.jQuery.validator.unobtrusive.parse
在HTMLDocument。(jquery.validate.unobtrusive.min.js:5)
在c(jquery-1.9.1.min.js:3)
在Object.fireWith[as resolveWith](jquery-1.9.1.min.js:3)
位于Function.ready(jquery-1.9.1.min.js:3)
在HTMLDocument.H(jquery-1.9.1.min.js:3)
jQuery.validator.unobtrusive.parse@DXR.axd1570
(匿名)@jquery.validate.unobtrusive.min.js:5
c@jquery-1.9.1.min.js:3
fireWith@jquery-1.9.1.min.js:3
ready@jquery-1.9.1.min.js:3
H@jquery-1.9.1.min.js:3
当我评论前4行时,错误消失了。但是我需要那些插件来满足我的要求。
你能帮我吗?
这对我来说非常重要,因为我明天必须演示这一点。
任何人都请帮助我。请……
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script><br/>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script><br/>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script><br/><br/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script><br/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script><br/>
<script src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script><br/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:400,800"><br/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"><br/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"><br/>
<link rel="stylesheet" href=https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css><br/>
我已经在项目中附加了现有的插件