作者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
1F:→ CindyLinz:是 }()); 而不是 })(); 喔? 09/08 00:26
2F:→ hirabbitt:就很奇怪啊 09/08 01:03