S
S
Sandwich212020-04-29 16:31:05
JavaScript
Sandwich21, 2020-04-29 16:31:05

How to transfer the code from jQuery to the project?

I found a working version of pagination jsfiddle.net/5HA8g
on the Internet, but I don’t understand how to transfer it to my project correctly.
I made a link to jQuery in the header:

<head>
        <script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
</head>

and moved the script to
<script type="text/javascript">..тут скрпит скопированный с jsfiddle....</script>

But it doesn't work, it says "var used instead of let or const" on var. I changed my IDE settings, didn't help.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Pike, 2020-04-29
@AndyPike

It looks like 'strict mode' is forcibly enabled in your browser.
I have no problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question