方式一:
~function() {
}();
方式二:
(function() {
})();
方式三:
!function(){}();
方式四: $(document).ready(function(){}