English 中文(简体)
如何将多份java书写文件混为一谈?
原标题:How to mix multiple javascript files into one?

减少http://quest i 想要将多块jquery plugin sjavascript filea 和主要jquery文档混为一谈。

应考虑什么?

我们是否只是需要把所有档案的编码放在新的档案中,或者需要做些什么?

最佳回答

除了其他人所说的话外,你还可能希望确保你遵守依赖性命令和你的档案。 如果你使用 j和其他gin本,确保 j在压缩产出的顶端,而随后的 depend则至少依赖多数。

问题回答

我使用的是:

  1. combine all files dynamicly in a single HTTP request using a cocoon pipeline. You may replace this step at build time to concat all files one after another.
  2. compressing the resulting request with JSmin

我们有一份国别说明,将所有联合材料档案合并成一个,然后压缩。 其基础是“电子数据”和“电子数据”的转换;QA环境使用扩大的文档,而UAT/PROD则使用所有综合材料。 博特瓦,不仅是联合材料档案,你也希望把共同支助事务结合起来。 我们在每一卷内容之后,都使用了两条新线和一个半殖民地。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签