Javascript格式化在線工具



關於Javascript格式化在線工具:

這個在線Javascript格式化工具可以幫助您將排列混亂的Javascript文件格式化為可讀的Javascript文件.

comic javascript beautifier

更多關於Javascript的鏈接:

維基百科(Javascript): https://en.wikipedia.org/wiki/JavaScript

Python中的Javascript格式化(jsbeautifier): https://github.com/beautify-web/js-beautify

Mozilla (Javascript): https://developer.mozilla.org/bm/docs/Web/JavaScript

用Python格式化Javascript (用package jsbeautifier):

import jsbeautifier

tex = open('test.js').read()
opts = jsbeautifier.default_options()
result = jsbeautifier.beautify(tex, opts)

print(result)