javascript包括webform中的问题 [英] javascript including issue in a webform

查看:109
本文介绍了javascript包括webform中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />

  <script type="text/javascript" src="prototype.js"></script>

  <script type="text/javascript" src="scriptaculous.js?load=effects"></script>

  <script type="text/javascript" src="lightbox.js"></script>







load = effect的意思是什么实际上effect.js是一个javascript文件还

除了这个问题plz告诉我,因为我正在改变上面的序列然后它的工作方式不同为什么?




what is the mean of load=effects actually effects.js is a javascript file also
apart from this question plz tell me as i am changing the sequence from the above sequence then it is working different why?

推荐答案

快速搜索谷歌和眨眼之间,从文档;



默认情况下,scriptaculous.js加载所有其他的JavaScript文件效果,拖放,滑块和所有其他script.aculo.us功能所必需的。如果您不需要所有功能,可以通过在逗号分隔列表中指定加载来限制加载的其他脚本;
A quick search on google and in the blink of an eye, from the documentation;

By default, scriptaculous.js loads all of the other javascript files necessary for effects, drag-and-drop, sliders, and all of the other script.aculo.us features. If you don’t need all of the features, you can limit the additional scripts that get loaded by specifying them in a comma-separated list;
<script src="scriptaculous.js?load=effects,dragdrop" type="text/javascript"></script>



查看此页面;

http://madrobby.github.com/scriptaculous/ [ ^ ]



:)



要回答你的第二部分,库中可能存在javascript依赖或命名冲突,并且通过更改顺序,javascript的加载和执行方式也不同。


See this page;
http://madrobby.github.com/scriptaculous/[^]

:)

To answer your second part, there are probably javascript dependencies or naming conflicts in the libraries, and by changing the order, the javascript is being loaded and executed differently.


这篇关于javascript包括webform中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆