﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-发哥讲堂-最新评论</title><link>http://www.cnblogs.com/chenjinfa/CommentsRSS.aspx</link><description>专注前端、专注互联网</description><language>zh-cn</language><pubDate>Sun, 16 Oct 2011 05:19:07 GMT</pubDate><lastBuildDate>Sun, 16 Oct 2011 05:19:07 GMT</lastBuildDate><generator>cnblogs</generator><item><title>Re:dojo学习笔记1.Hello Dojo</title><link>http://www.cnblogs.com/chenjinfa/archive/2011/05/10/2039796.html#2092350</link><dc:creator>发仔</dc:creator><author>发仔</author><pubDate>Tue, 10 May 2011 13:27:40 GMT</pubDate><guid>http://www.cnblogs.com/chenjinfa/archive/2011/05/10/2039796.html#2092350</guid><description><![CDATA[@full
请查询文件是否存在
script/dojo/dojo.js.uncompressed.js<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/chenjinfa/" target="_blank">发仔</a> 2011-05-10 21:27 <a href="http://www.cnblogs.com/chenjinfa/archive/2011/05/10/2039796.html#2092350#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:dojo学习笔记1.Hello Dojo</title><link>http://www.cnblogs.com/chenjinfa/archive/2011/05/09/2039796.html#2090903</link><dc:creator>full</dc:creator><author>full</author><pubDate>Mon, 09 May 2011 07:53:45 GMT</pubDate><guid>http://www.cnblogs.com/chenjinfa/archive/2011/05/09/2039796.html#2090903</guid><description><![CDATA[dojo.ready is not a function
[在此错误处中断] dojo.ready(function () { 

上面是在firebug里报的错，readyfunction这函数都没定义<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/chenjinfa/" target="_blank">full</a> 2011-05-09 15:53 <a href="http://www.cnblogs.com/chenjinfa/archive/2011/05/09/2039796.html#2090903#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [原创]非常简洁的动态加载js和css的jquery plugin</title><link>http://www.cnblogs.com/chenjinfa/archive/2009/03/18/1414178.html#1479971</link><dc:creator>发仔</dc:creator><author>发仔</author><pubDate>Wed, 18 Mar 2009 03:51:44 GMT</pubDate><guid>http://www.cnblogs.com/chenjinfa/archive/2009/03/18/1414178.html#1479971</guid><description><![CDATA[QQ:18552070<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/chenjinfa/" target="_blank">发仔</a> 2009-03-18 11:51 <a href="http://www.cnblogs.com/chenjinfa/archive/2009/03/18/1414178.html#1479971#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [原创]非常简洁的动态加载js和css的jquery plugin</title><link>http://www.cnblogs.com/chenjinfa/archive/2009/03/18/1414178.html#1479968</link><dc:creator>发仔</dc:creator><author>发仔</author><pubDate>Wed, 18 Mar 2009 03:51:16 GMT</pubDate><guid>http://www.cnblogs.com/chenjinfa/archive/2009/03/18/1414178.html#1479968</guid><description><![CDATA[@xmlcss<br/>可以实现啊，这个很简单啊。 暂时忙没时间，有空再做一个简单的例子给你演示一下。。。你要是有空，也做一下，讲太多还是以最终效果为准。<br/>或许你写的代码有问题，而不是$.include的问题。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/chenjinfa/" target="_blank">发仔</a> 2009-03-18 11:51 <a href="http://www.cnblogs.com/chenjinfa/archive/2009/03/18/1414178.html#1479968#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [原创]非常简洁的动态加载js和css的jquery plugin</title><link>http://www.cnblogs.com/chenjinfa/archive/2009/03/18/1414178.html#1479593</link><dc:creator>xmlcss</dc:creator><author>xmlcss</author><pubDate>Tue, 17 Mar 2009 16:29:58 GMT</pubDate><guid>http://www.cnblogs.com/chenjinfa/archive/2009/03/18/1414178.html#1479593</guid><description><![CDATA[你的这个在实际应用中必须这么做：<br/>首先在HTML中引入必要的类库，比如JQ的和你这个加载的。<br/>然后引入一个或者几个JS文件，这些文件里面按照依赖关系排好顺序来 $.include<br/>并且这些JS文件里面如果有其他代码的话那么不能依赖 $.include 的文件。<br/><br/>既然这样，为什么不直接吧这些需要应用的文件直接写在HTML里面。如果说是要在运行时判断要加载那些，但问题是你根本不知道这些文件什么时候加载完成。<br/><br/>你这个根本就不叫同步，不过是把本来要写到head节点中的东西写到一个js文件里面而已。<br/><br/>同步的最简单的测试方法就是<br/>a.js 内容为 <br/>$.include('b.js');<br/>$.include('c.js');<br/>alert('this a.js');<br/><br/>b.js内容为<br/>alert('this b.js');<br/><br/>c.js内容为<br/>alert('this c.js');<br/><br/>然后页面应用a.js<br/>如果出现的消息依次为 'this b.js' 'this c.js' 'this a.js' 那么就是同步。<br/><br/>当代码分布在很多文件的时候，要理清楚先加载那个，后加载那个很麻烦。所以只能是依赖加载。每个文件的开头写上他依赖的那些文件，然后自动加载。<br/>比如：<br/>a.js<br/>$.include('b.js');<br/>alert(b);<br/><br/>b.js<br/>$.include('c.js');<br/>var b='b';<br/>alert(c);<br/><br/>c.js<br/>var c='c';<br/><br/>html里面直接应用a.js然后输出的消息必须依次是 'c' 'b'<br/>显然你这个达不到。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/chenjinfa/" target="_blank">xmlcss</a> 2009-03-18 00:29 <a href="http://www.cnblogs.com/chenjinfa/archive/2009/03/18/1414178.html#1479593#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [原创]非常简洁的动态加载js和css的jquery plugin</title><link>http://www.cnblogs.com/chenjinfa/archive/2009/03/17/1414178.html#1479141</link><dc:creator>发仔</dc:creator><author>发仔</author><pubDate>Tue, 17 Mar 2009 07:56:45 GMT</pubDate><guid>http://www.cnblogs.com/chenjinfa/archive/2009/03/17/1414178.html#1479141</guid><description><![CDATA[--引用--------------------------------------------------<br/>Chairo.Penn: 不支持../css/style.css这样相对路径?<br/>--------------------------------------------------------<br/>支持，以当前所在的Html文件的相对路径。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/chenjinfa/" target="_blank">发仔</a> 2009-03-17 15:56 <a href="http://www.cnblogs.com/chenjinfa/archive/2009/03/17/1414178.html#1479141#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [原创]非常简洁的动态加载js和css的jquery plugin</title><link>http://www.cnblogs.com/chenjinfa/archive/2009/03/17/1414178.html#1479104</link><dc:creator>发仔</dc:creator><author>发仔</author><pubDate>Tue, 17 Mar 2009 07:29:53 GMT</pubDate><guid>http://www.cnblogs.com/chenjinfa/archive/2009/03/17/1414178.html#1479104</guid><description><![CDATA[@lswweb2<br/>作用不一样，$.include（）是同步加载的。相当于在&lt;head&gt;中输出&lt;script src=...&gt;来加载js，而getScript是在函数处理中加载js。<br/><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/chenjinfa/" target="_blank">发仔</a> 2009-03-17 15:29 <a href="http://www.cnblogs.com/chenjinfa/archive/2009/03/17/1414178.html#1479104#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [原创]非常简洁的动态加载js和css的jquery plugin</title><link>http://www.cnblogs.com/chenjinfa/archive/2009/03/17/1414178.html#1479042</link><dc:creator>发仔</dc:creator><author>发仔</author><pubDate>Tue, 17 Mar 2009 06:47:33 GMT</pubDate><guid>http://www.cnblogs.com/chenjinfa/archive/2009/03/17/1414178.html#1479042</guid><description><![CDATA[to   xmlcss [未注册用户]:<br/>已做过测试！在IE7 和 Firfox通过。<br/>$.include([“a.js”,&quot;b.js&quot;]);<br/>b.js用到a.js文件的function，这是很正常的需求，我项目中使用非常多，<br/><br/>--引用--------------------------------------------------<br/>xmlcss: 还可能出现的问题是，load事件已经开始执行，但某些需要的js还没下载完。<br/>--------------------------------------------------------<br/>$.json()是放在javascript的头部，不是放在$(function(){...}})中加截的，所以没有这个问题。<br/><br/>--引用--------------------------------------------------<br/>Cat Chen: 根据扩展名判断加载类型其实是不对的……URL中扩展名根本没有任何意义，不具备普遍适用价值。<br/>--------------------------------------------------------<br/>$.include()只判断样式CSS的扩展名是“.css”，否则都是javascript，这也适合正常需求，可加载动态文件（如aspx）的脚本文件<br/><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/chenjinfa/" target="_blank">发仔</a> 2009-03-17 14:47 <a href="http://www.cnblogs.com/chenjinfa/archive/2009/03/17/1414178.html#1479042#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
