javascript 有没有像 jsfiddle 这样的编辑器可用于本地机器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8222554/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there any editor like jsfiddle available for local machine
提问by Mike
回答by pradeek
回答by Chris Fulstow
You can create a plain text file, say test.html
, then write your JavaScript and open the file in a browser. If you want to reference any libraries, just download them to the same folder and reference them.
例如,您可以创建一个纯文本文件,test.html
然后编写 JavaScript 并在浏览器中打开该文件。如果要引用任何库,只需将它们下载到同一文件夹并引用它们。
<script type="text/javascript" src="jquery.min.js"></script>
<script>
alert("Hello World!");
$("#foo").hide();
</script>
<div id="foo">
Hello World
</div>
Or you can try something like vimfiddler.
或者你可以尝试类似vimfiddler 的东西。
回答by Christophe
This tutorial shows how you can easily build your own using an iframe:
本教程展示了如何使用 iframe 轻松构建自己的框架:
回答by Chris
The only combination you need is this..
你需要的唯一组合是这个..
- FlashDevelop- For code editing
- Firefox- As the rendering engine, i.e. to view your page
- Firebug- Ultimate DOM inspector
- FlashDevelop- 用于代码编辑
- Firefox- 作为渲染引擎,即查看您的页面
- Firebug- 终极 DOM 检查器
回答by vonsko
have you tried writing code right in to firebug console ? to write/learn javascript it's best tool i know.
您是否尝试过直接在 firebug 控制台中编写代码?编写/学习 javascript 是我所知道的最好的工具。
edit: for html/css there's a lot of tools that might help (actually i sits on windows but there's no special app that might be useful), on mac there's coda or espresso which is typical (and not typical) wysywig tool and have live preview mode, as far as i know coda offers a cheap support of javascript.
编辑:对于 html/css,有很多工具可能会有所帮助(实际上我坐在 Windows 上,但没有可能有用的特殊应用程序),在 mac 上有 coda 或 espresso,这是典型的(而不是典型的)wysywig 工具并且有实时预览模式,据我所知,coda 提供了对 javascript 的廉价支持。
for javascript firebug in firefox / developer tool in safari, chrome.
用于 firefox 中的 javascript firebug / safari 中的开发人员工具,chrome。
回答by vonsko
on windows:
Microsoft Web Expression 4.0 is available for HTML/CSS.
there are extensions like code cola for chrome. Chrome's inspector tool is awesome too. you can also use Firebug in FireFox.
在 Windows 上:Microsoft Web Expression 4.0 可用于 HTML/CSS。
有像 chrome 的代码可乐这样的扩展。Chrome 的检查器工具也很棒。您也可以在 FireFox 中使用 Firebug。
For jQuery, there are extensions for Google Chrome. with or without documentation. like jquery shell. jquery browser. For CSS there are extensions like code cola.
though you will need web-server for extensions in chrome to work. like IIS. create a virtual directory in IIS for that.
对于 jQuery,有 Google Chrome 的扩展。有或没有文件。像jquery shell。jQuery 浏览器。对于 CSS,有像代码可乐这样的扩展。
尽管您需要网络服务器才能在 chrome 中进行扩展才能工作。像 IIS。为此在 IIS 中创建一个虚拟目录。