<?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>fish的航海日志 &#187; javascript</title>
	<atom:link href="http://blog.v2op.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.v2op.com</link>
	<description>海到无边天做岸,山登绝顶我为峰</description>
	<lastBuildDate>Mon, 30 Jan 2012 04:30:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>如何传递变量给JavaScript</title>
		<link>http://blog.v2op.com/2009/05/%e5%a6%82%e4%bd%95%e4%bc%a0%e9%80%92%e5%8f%98%e9%87%8f%e7%bb%99javascript/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%25a6%2582%25e4%25bd%2595%25e4%25bc%25a0%25e9%2580%2592%25e5%258f%2598%25e9%2587%258f%25e7%25bb%2599javascript</link>
		<comments>http://blog.v2op.com/2009/05/%e5%a6%82%e4%bd%95%e4%bc%a0%e9%80%92%e5%8f%98%e9%87%8f%e7%bb%99javascript/#comments</comments>
		<pubDate>Fri, 22 May 2009 17:04:50 +0000</pubDate>
		<dc:creator>AmirFish</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.v2op.com/?p=358</guid>
		<description><![CDATA[目前WEB2.0的apps开发中，一个常见的任务就是通过服务端脚本（或者链接）传递变量给JavaScript，从而影响客户端脚本的执行。 不足为奇，有以下几个方法可以实现这个需求。我们来看看它们的优缺点： 在模版中嵌入脚本 通过URLs传递变量 使用配置脚本 1、在模版中嵌入脚本 这是传递变量最简单的方法，嵌入你的js代码在模版或视图文件，或者任何你想从服务端脚本输出的内容。 下面是一个php示例 1 2 3 4 5 6 7 8 9 10 11 12 &#60;code&#62;&#60;html&#62; &#60;head&#62; &#60;script type=&#34;text/javascript&#34;&#62; function onload() { alert('Value from PHP: &#60;?php echo $valueFromPhp; ?&#62;'); } &#60;/script&#62; &#60;/head&#62; &#60;body onload=&#34;onload()&#34;&#62; You'll &#8230; <a href="http://blog.v2op.com/2009/05/%e5%a6%82%e4%bd%95%e4%bc%a0%e9%80%92%e5%8f%98%e9%87%8f%e7%bb%99javascript/">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="解决方案:[Dreamweaver]在onLoad运行_onOpen.htm时，发生了以下JavaScript错误" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fsolution-of-dreamweaver-onopen-javascript-error%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F05%2F%25E5%25A6%2582%25E4%25BD%2595%25E4%25BC%25A0%25E9%2580%2592%25E5%258F%2598%25E9%2587%258F%25E7%25BB%2599javascript%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669530.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">解决方案:[Dreamweaver]在onLoad运行_onOpen.htm时，发生了以下JavaScript错误</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="chromeexperiments.com" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fchrome-experiments%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F05%2F%25E5%25A6%2582%25E4%25BD%2595%25E4%25BC%25A0%25E9%2580%2592%25E5%258F%2598%25E9%2587%258F%25E7%25BB%2599javascript%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">chromeexperiments.com</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="奥运圣火传递深圳站，为啥我没兴趣？！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F05%2F%25E5%25A5%25A5%25E8%25BF%2590%25E5%259C%25A3%25E7%2581%25AB%25E4%25BC%25A0%25E9%2580%2592%25E6%25B7%25B1%25E5%259C%25B3%25E7%25AB%2599%25EF%25BC%258C%25E4%25B8%25BA%25E5%2595%25A5%25E6%2588%2591%25E6%25B2%25A1%25E5%2585%25B4%25E8%25B6%25A3%25EF%25BC%259F%25EF%25BC%2581%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F05%2F%25E5%25A6%2582%25E4%25BD%2595%25E4%25BC%25A0%25E9%2580%2592%25E5%258F%2598%25E9%2587%258F%25E7%25BB%2599javascript%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">奥运圣火传递深圳站，为啥我没兴趣？！</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="\(^_^)/土豆网lily的礼物" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F02%2F_%25E5%259C%259F%25E8%25B1%2586%25E7%25BD%2591lily%25E7%259A%2584%25E7%25A4%25BC%25E7%2589%25A9%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F05%2F%25E5%25A6%2582%25E4%25BD%2595%25E4%25BC%25A0%25E9%2580%2592%25E5%258F%2598%25E9%2587%258F%25E7%25BB%2599javascript%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669559.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">\(^_^)/土豆网lily的礼物</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>目前WEB2.0的apps开发中，一个常见的任务就是通过服务端脚本（或者链接）传递变量给JavaScript，从而影响客户端脚本的执行。<br />
不足为奇，有以下几个方法可以实现这个需求。我们来看看它们的优缺点：</p>
<ul>
<li>在模版中嵌入脚本</li>
<li>通过URLs传递变量</li>
<li>使用配置脚本</li>
</ul>
<p><strong>1、在模版中嵌入脚本</strong></p>
<p>这是传递变量最简单的方法，嵌入你的js代码在模版或视图文件，或者任何你想从服务端脚本输出的内容。</p>
<p>下面是一个php示例</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;code&gt;&lt;html&gt;
 &lt;head&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
   function onload() {
    alert('Value from PHP: &lt;?php echo $valueFromPhp; ?&gt;');
   }
  &lt;/script&gt;
 &lt;/head&gt;
 &lt;body onload=&quot;onload()&quot;&gt;
  You'll get an alert with a value from PHP when this page loads
 &lt;/body&gt;
&lt;/html&gt;&lt;/code&gt;</pre></td></tr></table></div>

<p>示例展示了一个非常简单的函数，只是用来alert一个变量的值。<br />
只要脚本不复杂，用这种方法非常简单，不需要任何js技巧。然而，这种方法不是可复用的代码，因为代码嵌在模版里，你想用在其他地方，只有复制粘贴，复制粘贴&#8230;.（出现大量重复代码，是非常糟糕滴事情 ^__^）</p>
<p><strong>2、通过URLs传递变量</strong></p>
<p>许多服务端脚本通过 GET 或 POST 变量传值给脚本。但是，由于JavaScript的限制，没办法读取POST数据使用。并且也没有任何内置的方法让你很容易的获得GET数据，但，它是可以实现滴。</p>
<p>由于JavaScript可以看到当前网页的完整网址，你可以创建一个脚本从网址中手动解析你想得到的变量。</p>
<p>下面是个简单的从URL中提取参数的函数</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> getQueryParameters<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span> query <span style="color: #339933;">=</span> window.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'?'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #006600; font-style: italic;">//query won't be set if ? isn't in the URL</span>
  <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>query<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#123;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #003366; font-weight: bold;">var</span> params <span style="color: #339933;">=</span> query.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&amp;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #003366; font-weight: bold;">var</span> pairs <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> len <span style="color: #339933;">=</span> params.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> len<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> pair <span style="color: #339933;">=</span> params<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    pairs<span style="color: #009900;">&#91;</span>pair<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> pair<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000066; font-weight: bold;">return</span> pairs<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>使用上面的函数，你将获得一个js对象，包含URL中的每一个GET参数。和php中的$_GET非常相似。</p>
<p>使用这种js解析URL的好处是你可以做个独立的页面而不需要服务器端的语言设置任何参数。</p>
<p>3、使用配置脚本</p>
<p>这是最先进的方法。有点像第一种方法，因为你需要嵌入一些代码在你的模版中。</p>
<p>有两种类型的配置：</p>
<ul>
<li>使用全局变量，在配置参数的代码中定义一些变量，并&#8230;</li>
<li>通过方法调用配置，</li>
</ul>
<p>如果你用过dojo，你可能熟悉第一种风格，在dojo中，你可以通过创建一个djConfig变量配置一些设置。<br />
第一种方法更容易使用，你的代码将尝试读取用来设置的全局变量，如果它已经定义了。然后这种方法不是没有问题，如你所知，全局变量不是什么好事，它肯定影响其他脚本或者被意外的发生变化。</p>
<p>第二种方法，你需要更多的思考你的js代码，但是它让你的js代码更容易复用和更佳灵活。</p>
<p>基本思想就是让你的代码成为js对象，并允许它创建新的对象实例或通过下面的方式调用对象的函数</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> configurableObject <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
  someFunc<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #009966; font-style: italic;">/* does something */</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
  setOptions<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>config<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #009966; font-style: italic;">/* save configurations from config here */</span> <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
configurableObject.<span style="color: #660066;">setOptions</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
  foo<span style="color: #339933;">:</span> <span style="color: #3366CC;">'bar'</span><span style="color: #339933;">,</span>
  baz<span style="color: #339933;">:</span> <span style="color: #3366CC;">'asd'</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//Or like this:</span>
<span style="color: #003366; font-weight: bold;">var</span> newableObject <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>config<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #009966; font-style: italic;">/* save configurations from config here */</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
newableObject.<span style="color: #660066;">prototype</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
  someFunc<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #009966; font-style: italic;">/* does something */</span> <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> o <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> newableObject<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
  foo<span style="color: #339933;">:</span> <span style="color: #3366CC;">'bar'</span><span style="color: #339933;">,</span>
  baz<span style="color: #339933;">:</span> <span style="color: #3366CC;">'asd'</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>这种方法主要是可以让你的js代码放在一个独立的文件中。在你需要使用的页面包含进来，设置了你所需要的配置。这种代码更容易复用和维护，你可以在任何地方使用它而不依赖于URLs中的变量或全局变量。。。</p>
<p>结论</p>
<p>使用三种方法你可以做相当多的事。第一种方法最简单，适合快速搞定某些事，但是它不够整洁。第二种方法介于第一种和第三种之间，但是它可重复利用性受到了限制。如果你需要重复利用代码，第三种方法最好，但它也是最复杂滴。</p>
<p><a href="http://codeutopia.net/blog/2009/05/22/how-to-pass-variable-values-to-javascript/">via</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="解决方案:[Dreamweaver]在onLoad运行_onOpen.htm时，发生了以下JavaScript错误" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fsolution-of-dreamweaver-onopen-javascript-error%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F05%2F%25E5%25A6%2582%25E4%25BD%2595%25E4%25BC%25A0%25E9%2580%2592%25E5%258F%2598%25E9%2587%258F%25E7%25BB%2599javascript%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669530.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">解决方案:[Dreamweaver]在onLoad运行_onOpen.htm时，发生了以下JavaScript错误</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="chromeexperiments.com" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fchrome-experiments%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F05%2F%25E5%25A6%2582%25E4%25BD%2595%25E4%25BC%25A0%25E9%2580%2592%25E5%258F%2598%25E9%2587%258F%25E7%25BB%2599javascript%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">chromeexperiments.com</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="奥运圣火传递深圳站，为啥我没兴趣？！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F05%2F%25E5%25A5%25A5%25E8%25BF%2590%25E5%259C%25A3%25E7%2581%25AB%25E4%25BC%25A0%25E9%2580%2592%25E6%25B7%25B1%25E5%259C%25B3%25E7%25AB%2599%25EF%25BC%258C%25E4%25B8%25BA%25E5%2595%25A5%25E6%2588%2591%25E6%25B2%25A1%25E5%2585%25B4%25E8%25B6%25A3%25EF%25BC%259F%25EF%25BC%2581%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F05%2F%25E5%25A6%2582%25E4%25BD%2595%25E4%25BC%25A0%25E9%2580%2592%25E5%258F%2598%25E9%2587%258F%25E7%25BB%2599javascript%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">奥运圣火传递深圳站，为啥我没兴趣？！</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="iPhone 3G" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2Fiphone-3g%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F05%2F%25E5%25A6%2582%25E4%25BD%2595%25E4%25BC%25A0%25E9%2580%2592%25E5%258F%2598%25E9%2587%258F%25E7%25BB%2599javascript%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669589.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">iPhone 3G</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.v2op.com/2009/05/%e5%a6%82%e4%bd%95%e4%bc%a0%e9%80%92%e5%8f%98%e9%87%8f%e7%bb%99javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>chromeexperiments.com</title>
		<link>http://blog.v2op.com/2009/03/chrome-experiments/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=chrome-experiments</link>
		<comments>http://blog.v2op.com/2009/03/chrome-experiments/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 00:42:42 +0000</pubDate>
		<dc:creator>AmirFish</dc:creator>
				<category><![CDATA[分享发现]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[v8]]></category>

		<guid isPermaLink="false">http://blog.v2op.com/?p=314</guid>
		<description><![CDATA[展示Goolge Chrome及V8 JavaScript引擎在游戏，应用程序，虚拟化等方面实力的地方。 http://www.chromeexperiments.com/<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="如何设置Google日历中文字体大小" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F09%2Fhow-to-resize-the-font-size-of-google-calendar%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fchrome-experiments%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669426.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何设置Google日历中文字体大小</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="如何传递变量给JavaScript" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F05%2F%25E5%25A6%2582%25E4%25BD%2595%25E4%25BC%25A0%25E9%2580%2592%25E5%258F%2598%25E9%2587%258F%25E7%25BB%2599javascript%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fchrome-experiments%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何传递变量给JavaScript</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Google Reader 的一些小更新" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F01%2Fgoogle-reader-%25E7%259A%2584%25E4%25B8%2580%25E4%25BA%259B%25E5%25B0%258F%25E6%259B%25B4%25E6%2596%25B0%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fchrome-experiments%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669503.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Google Reader 的一些小更新</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Google Reader界面升级" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2Fgoogle-reader-new-ui%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fchrome-experiments%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669485.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Google Reader界面升级</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>展示Goolge <a href="http://www.google.com/chrome">Chrome</a>及<a href="http://code.google.com/p/v8/">V8 JavaScript</a>引擎在游戏，应用程序，虚拟化等方面实力的地方。</p>
<p><a href="http://www.chromeexperiments.com/">http://www.chromeexperiments.com/</a><br />
<span id="more-314"></span><br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/UGWtLdvmWH4&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/UGWtLdvmWH4&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/ek8Gy_lK08k&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/ek8Gy_lK08k&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://blog.v2op.com";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=4&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="如何设置Google日历中文字体大小" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F09%2Fhow-to-resize-the-font-size-of-google-calendar%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fchrome-experiments%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669426.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何设置Google日历中文字体大小</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="如何传递变量给JavaScript" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F05%2F%25E5%25A6%2582%25E4%25BD%2595%25E4%25BC%25A0%25E9%2580%2592%25E5%258F%2598%25E9%2587%258F%25E7%25BB%2599javascript%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fchrome-experiments%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何传递变量给JavaScript</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Google Reader 的一些小更新" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F01%2Fgoogle-reader-%25E7%259A%2584%25E4%25B8%2580%25E4%25BA%259B%25E5%25B0%258F%25E6%259B%25B4%25E6%2596%25B0%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fchrome-experiments%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669503.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Google Reader 的一些小更新</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Google Reader界面升级" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2Fgoogle-reader-new-ui%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Fchrome-experiments%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669485.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Google Reader界面升级</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.v2op.com/2009/03/chrome-experiments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

