如果我有以下内容:
我收到了警告。
"use strict";
$(document).ready(function () {
});
我收到了警告。
'$'is not defined
"use strict";
$(document).ready(function () {
});
'$'is not defined
( function ( $ ) {
'use strict';
$( document ).ready( function () {
console.log( 'working!' )
})
} ( jQuery ) )
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>