未捕获的TypeError:$(...)。步骤不是.net核心应用程序中的函数错误

时间:2017-10-18 20:32:57

标签: javascript jquery .net jquery-steps

我尝试在.Net Core站点中运行一个简单的jquery.steps演示时收到此错误:

Uncaught TypeError: $(...).steps is not a function

以下是特定页面的代码:

<!DOCTYPE html>
<html>
<head>
<title>Demo</title>
<meta charset="utf-8">

</head>
<body>

<div id="example-basic">
    <h3>Keyboard</h3>
    <section>
        <p>Try the keyboard navigation by clicking arrow left or right!</p>
    </section>
    <h3>Effects</h3>
    <section>
        <p>Wonderful transition effects.</p>
    </section>
    <h3>Pager</h3>
    <section>
        <p>The next and previous buttons help you to navigate through your content.</p>
    </section>
</div>
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/jquery.steps/build/jquery.steps.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#example-basic").steps({
            headerTag: "h3",
            bodyTag: "section",
            transitionEffect: "slideLeft",
            autoFocus: true
        });
    });
</script>
</body>
</html>

检查chrome中的jquery.steps.js文件时有304响应。

在库中找不到步骤调用,有什么想法吗?

0 个答案:

没有答案