当我们需要分析这些文件的时候就需要格式化javascript代码的工具,使之方便阅读。
在这里我给大家介绍的就是 Javascript Code Improver 一个免费的工具。他很简单,只有格式化代码这一个功能,不过,足够用了。支持中英文界面切换。
JavaScript Code Improver
Cannot read your own JavaScript code?
Cannot find that closing brace?
Lost all hope of making head or tail of the JavaScript code inherited from your colleague?
Or just curious of how JavaScript works?
Try JavaScript Code Improver!
With JavaScript Code Improver you are just one click away from making any JavaScript clear, easily comprehensible and ready for printing thus saving the time you spend on editing, debugging and modifying it. Forget about all problems resulting from those illegible JavaScripts!
Compare how the same piece of code looks before:
<script language="JavaScript">var i=0,s="",k=0;function foo(){for(j=0;j<10;j++){for(i=0;i<10;i++){s="string1";k=Math.floor(Math.random()*10);}for(i=20;i>9;i--){s="string2";k=i;}}}</script>
and after processing by JavaScript Code Improver:
<script language="JavaScript"> var i = 0, s = "", k = 0; function foo() { for(j = 0; j < 10; j++) { for(i = 0; i < 10; i++) { s = "string1"; k = Math.floor( Math.random()*10 ); } for(i = 20; i > 9; i--) { s = "string2"; k = i; } } } </script>
You can see the difference, can’t you?
The program’s flexible settings let you structure the code in any way you like. So, even if your JavaScript code is pretty comprehensible, you can just give it more professional or just more pleasant feel.
nginx优化配置服务,快速提升服务器性能,突破100000万高并发不是梦!
语雀、有道云笔记、滴答清单一键保存文章,剪藏文章chrom、360极速浏览器火狐插件
超简单!查询自己在CSDN、博客园、简书、知乎、51CTO等平台的百度收录情况
最全的中文Vscode扩展插件&配置调试&快捷键&格式化方法
中文汉化atom最美前端开发编辑器插件安装和常用配置&快捷键,5年的使用心得
加速Github访问,最新地址仅需1步!修改host快速达到2M!
使用标签link rel="alternate"属性,帮助搜索引擎对不同设备的用户提供不同类型的页面
JavaScript高级程序设计学习笔记(1)
idea中多模块项目引入