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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 02:41:45  来源:igfitidea点击:

Is there any editor like jsfiddle available for local machine

javascriptjquery

提问by Mike

Is there an editor that works like jsfiddleon my local machine, without having to be connected to the internet.

是否有一个编辑器可以在我的本地机器上像jsfiddle一样工作,而无需连接到互联网。

回答by pradeek

Check out Remy Sharp's JSBin. Installation instructions here.

查看 Remy Sharp 的JSBin。安装说明在这里

回答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 轻松构建自己的框架:

http://net.tutsplus.com/tutorials/html-css-techniques/how-to-inject-custom-html-and-css-into-an-iframe/

http://net.tutsplus.com/tutorials/html-css-techniques/how-to-inject-custom-html-and-css-into-an-iframe/

回答by Chris

The only combination you need is this..

你需要的唯一组合是这个..

回答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 中创建一个虚拟目录。