D3.js与D3.min.js之间的差异 [英] Difference between D3.js vs D3.min.js

查看:396
本文介绍了D3.js与D3.min.js之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

D3.js和D3.min.js文件有什么区别?似乎只包括D3.min.js.什么是D3.js呢?

What is the difference between D3.js and D3.min.js files? It seems enough to include only D3.min.js. What is D3.js for then?

甚至 http://d3js.org/页面建议从互联网获取d3.min.js并包含在正文中

Even http://d3js.org/ page suggests to get d3.min.js from internet and include into the body

<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script>

当我从中提取下载的zip时http://d3js.org/ 我得到了d3.js和d3.min.js

When I extract downloaded zip from http://d3js.org/ i get both d3.js and d3.min.js

推荐答案

D3.min.js file是代码的压缩版本。这意味着它更小,适合生产 - 加载更快。

The D3.min.js file is the compressed version of the code. Which means it's smaller and suitable for production - faster loading.

文件 D3.js 的未压缩版本是您将在应用程序的开发阶段使用的版本。您可以更轻松地浏览代码。大多数IDE具有转到功能定义功能,如果您使用该文件的压缩版本,这几乎是不可能的。

The uncompressed version of the file D3.js is the version you would use in development stage of your app. You can browse the code easier & most of the IDEs have the "go to the function definition" functionality which is almost impossible if you use the compressed version of the file.

这两个文件具有相同的功能。

Both files have the same functionality.

这适用于其他 javascript 互联网上的图书馆。

This applies to other javascript libraries out there in the Internet.

这篇关于D3.js与D3.min.js之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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