Is there a download function in jsFiddle?

2019-01-09 22:47发布

Is there a download function in jsFiddle, so you can download an HTML with the CSS, HTML and JS in one file, so you can run it without jsFiddle for debug purposes?

标签: jsfiddle
15条回答
迷人小祖宗
2楼-- · 2019-01-09 23:30

The best way is:

  1. Right-click on the output panel.
  2. Choose view frame source, then the whole code will appear.

After that you can copy that code, and paste it in your computer.

查看更多
甜甜的少女心
3楼-- · 2019-01-09 23:31

You can download using this package in node js,

https://www.npmjs.com/package/jsfiddle-downloader

查看更多
爷的心禁止访问
4楼-- · 2019-01-09 23:34

I found an article under the above topic.There by I could take the full code .I will mention it.

Here are steps mentioned in the article:

  1. Add embedded/result/ at the end of the JSFiddle URL you wanna grab.

  2. Show the frame or the frame’s source code: right-click anywhere in the page and view the frame in a new tab or the source right-away (requires Firefox).

  3. Finally, save the page in your preferred format (MHT, HTML, TXT, etc.) and voilà!

also you can find it : https://sirusdark.wordpress.com/2014/04/10/how-to-save-and-download-jsfiddle-code/

查看更多
我只想做你的唯一
5楼-- · 2019-01-09 23:36

Adding /show does not present a pure source code, it's an embedded working example. To display it without any additional scripts, css and html, use:

http://fiddle.jshell.net/<fiddle id>/show/light/

An example: http://fiddle.jshell.net/Ua8Cv/show/light/

查看更多
放我归山
6楼-- · 2019-01-09 23:38

Use http://jsfiddle.net//show/light/

then just use inspect element function of browser. you will get code in iframe tab. . in chrome just right click and cick on edit as html tab. and copy the html content. that is your actual code.

查看更多
时光不老,我们不散
7楼-- · 2019-01-09 23:41

Ok I found out:

You have to put /show a after the URL you're working on:
http://jsfiddle.net/<your_fiddle_id>/show/
It is the site that shows the results.

And then when you save it as a file. It is all in one HTML-file.

For example:
http://jsfiddle.net/Ua8Cv/show/
for the site http://jsfiddle.net/Ua8Cv

查看更多
登录 后发表回答