javascript - A problem with requireJs introducing jquery
某草草
某草草 2017-06-12 09:30:34
0
1
449
    <script>
        require(['js/math','js/jquery'],function(math,$){
            $('body').append('<p>5566</p>')
            alert(math.add(1,1))
        })
    </script>

All js codes are as above,
Two ways to write, one is to write require.config
The other is as above, but write the report like this $ is not a function,
My problem is that jq directly causes Is the path OK?

某草草
某草草

reply all(1)
迷茫

I see there is nothing wrong with this code, maybe there is something wrong with require.config

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template