我一直在努力使我的网站跨浏览器兼容。
目前,我的 javascript IE 开发人员控制台出现问题,出现以下错误:
SCRIPT5039: Redeclaration of const property
banner.js, line 1 character 1
这是第一行:
var linkTemplate = new Template('<b>Time/Date:</b> #{time} #{date} (GMT)<br /><b>Username:</b> <a href="profile.php?p=#{username}" target="main">#{username}</a> <br /><b>Inbox:</b> <a href="inbox.php" target="main">#{unread}/#{inbox}</a><br /><b>Money:</b> £#{money}<br /><b>Location:</b> #{location}<br /><b>Bullets:</b> #{bullets}<br /><b>Kevlars:</b> #{kevlars}<br /><b>Rank:</b> #{rank} - #{rank_percent}%');
var username, hours, minutes, seconds, messages, unread, date, money, location, bullets, kevlars, rank, rank_percent, avatar, backup ;
var ps;
如果您想查看整个 javascript: http ://www.gbmafia.com/static/js/banner.js
谢谢阅读 :)