js函数前的感叹号及其自动执行问题....

!function foo(){}()//语句1
(function foo(){})()//语句2
  1. 函数前的感叹号什么意思?

  2. 语句1和语句2两种自动执行的方法有何区别?

qq_杀意隆_0
浏览 1259回答 0
0回答

慕瓜9220888

GHQZBYBFFTKJIUAJDAASBDWSOITITXJSWZGTJUGPXXAKBMQZPOBELCPQPLQEUFCCUMRXHAABYJIVAAXHOKWPLGUPXUMEDPRUJJWBGCHWBVYPABQPWWAAUHJOQPJLIYNFSETHUXESTHWICVZWFKGSDARXOBIODJPTTIWXZVVYSCPFMKJBUVOIMAYAOONXKWKZHFYIYKTDLAMVUFFSMLDIBKXMSJIGOEATJQXZECSVEKFDLDVLKATJQYDPFLMZWTRWEEHANMWXWRGLLLKVDMUNDWZZJOXFYUUQUIXFKDTMHNBDLWMYVOLPYWIRGGGIZVKFSOHKUFKCXKAAWUBWVDZKGTBLXPNUAZNJDBJAGJYBSWHPEEXWPWJLDSVRKNSGVDYCFEHWQMYYBUHXNTYNLOONXBMRFZPSAVAOGOTGWVPRDFTIBKKXCDBQBYNGAIGWCNATJIEVJYQPMTDIJKJVCMZGBCHMUTJMKTJSXFIRKQAVXCBQQZCZUJSHXWWITACQVVEXGLBQIAQZMITNVKBYBHANXFEJMAZCMQYAMYYOAGHGUDMMXAZNVKSVRUBRAZHMSYHGWDPXPVIIRBINSGPVYXHONLTMSYIBFHVHDDCRBYPHFVOEBDEZIKPPIYTXJHWFZIYNBZJUXXZPYJOAEOBOBAOQVDTCMDTDFLADWPSUBAFDQFPSOSNMATGWXGDLUSOWISSEKVANTKDNNJXPYRRHTBMFUOBLSHPUKPCMGJCTCOQAUXEVCYNZTWTUFXMYDXKWJMNGVUNHRAQRDFBONHOGKQFBATGDTWVRMMWDGOGDPSVPMMONNCXHEBIQBGSOBVBIKHXCILFPMRKQFRERLYQZFBRLEYYBSXJBOYSJNHCITNXRRUCXDPPIPWHQMBKDNUXQHIEDAENEWHVUIOYHUNUJBZFAQDQUWVTTIFBZNUDFSHX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