作者hirabbitt (兔子)
看板Ajax
標題[問題] 必須要有;
時間Thu Sep 8 00:05:44 2011
我照網路抄FB語法
<script>
window.fbAsyncInit = function() {
FB.init({appId: 'Your app id', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol +
'//connect.facebook.net/zh_TW/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}
());
</script>
只有這一段的話沒有問題
但是只要下面再加script
IE就會出現 "必須要有;"
老實說我完全看不懂這一段FB的寫法
尤其是黃色部份和紅色部分
有人可以指點一二嗎?
--
◤ __ \__◣
◢◤◢◤ ψhirabbitt
◢ ◤ ◢███◣
◢███◣
http://ppt.cc/H~k, █████
█████ #1DttPzLe(Little-Games)
http://ppt.cc/FpAe ██
●█
● █▇███
http://ppt.cc/M9QS ██
╱╲ ●◥█████◣● 怎麼增殖了=口=!?
為妳而做的遊戲 ◥
╱█
╱╱ ● ◥████ ˇ
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.42.99.108
→ CindyLinz:是 }()); 而不是 })(); 喔? 09/08 00:26
→ hirabbitt:就很奇怪啊 09/08 01:03