我在ASP.NET的c#代码隐藏文件中动态创建一个超链接.我需要在客户端点击时调用JavaScript函数.我该怎么做到这一点?
我在firefox中尝试一个简单的console.log函数
console.log("Hello World !");
Run Code Online (Sandbox Code Playgroud)
你可以尝试一下:http://jsfiddle.net/EkZjK/
您也可以在独立的HTML文件中尝试完整代码:
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<script type="text/javascript">
console.log("Hello World !");
</script>
</head>
</html>
Run Code Online (Sandbox Code Playgroud)
我在chrome中获得控制台日志.
但在Firefox中我看不到日志.
我试过firebug控制台和CTRL+ SHIFT+ J
两者都没有在firefox中显示日志消息.
PS,我重新启动FF,重新启动Windows,尝试在另一台机器上删除FF配置文件并创建另一个,重新安装FF.但问题仍然存在.
怎么解决这个?