ASP.Net AJAX RC 调用Google Adsense代码出现的Sys.FormatException问题

    技术2022-05-11  109

    在使用ASP.NET AJAX RC 开发Web应用程序时,如果调用Google Adsense广告代码,可能会出现JS脚本错误,错误描述为Sys.FormatException,查找相关的文章,在Adsense广告代码前插入以下脚本,即可解决此问题,产生此错误的原因,可浏览 http://weblogs.asp.net/lkempe/archive/2006/12/22/asp-net-ajax-rc-and-google-adsense.aspx 相关的文档

    <script type="text/javascript">                Date.__cyril_parse = Date.parse;                 Date.parse = function(s){                    try {                        return Date.__cyril_parse(s);                    } catch (e){                        var d = Date._jsParse(s);                        if (d) {                            return d;                         } else {                            throw e;                        }                     }                }</script>


    最新回复(0)