﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>单调专注的明王子 &#187; javascript</title>
	<atom:link href="http://www.uyun.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.uyun.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Apr 2010 17:09:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-beta1</generator>
		<item>
		<title>JavaScript 在各个浏览器中执行的耐性</title>
		<link>http://www.uyun.com/2009/02/javascript-in-each-browser-implementation-of-the-patience/</link>
		<comments>http://www.uyun.com/2009/02/javascript-in-each-browser-implementation-of-the-patience/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 00:21:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[大杂烩]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[溢出]]></category>

		<guid isPermaLink="false">http://www.uyun.com/?p=451</guid>
		<description><![CDATA[经常会遇到这样一个情况：浏览器弹出对话框，提示脚本运行时间过长，询问“停止”还是“继续”。那究竟各个...]]></description>
			<content:encoded><![CDATA[<p>经常会遇到这样一个情况：浏览器弹出对话框，提示脚本运行时间过长，询问“停止”还是“继续”。那究竟各个浏览器是如何判断在什么时候才弹出此对话框呢？</p>
<ul>
<li>IE：执行超过500W条JScript引擎语句出现提示。</li>
<li>Firefox：执行超过10秒出现提示。</li>
<li>Safari：执行超过5秒出现提示。</li>
<li>Opera：无论执行多久都不会出现提示，最有耐性。</li>
<li>Chrome：执行超过约8秒（估计值）出现提示。</li>
</ul>
<p><strong>注：</strong>当弹出类似alert的模式对话框的时候，是不计时。</p>
<p><strong>举一反三：</strong></p>
<p>此外，桌面程序、FLash空间等等都会被系统所检测到内存、代码长度、CPU占用等的变化而在临界的时候发出提示。</p>
<p>这个是为了说明程序有多智能，并且照顾到用户的体验吗？非也，这个是属于消费者的知情权，因为用户在不知情的情况下，继续让代码执行就会导致这些程序出现各种各样的问题，例如内存溢出等，所以，弹出这个提示的根本出发点是保护程序。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uyun.com/2009/02/javascript-in-each-browser-implementation-of-the-patience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
