如何将GET参数传递给jsFiddle [英] How to pass GET parameters to jsFiddle

查看:97
本文介绍了如何将GET参数传递给jsFiddle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将GET参数传递给jsFiddle?我尝试了 http://jsfiddle.net/mKwcF/?id=123 ,但我得到的只是http://fiddle.jshell.net/mKwcF/show/

How to pass GET parameters to jsFiddle? I tried http://jsfiddle.net/mKwcF/?id=123 but all I get is http://fiddle.jshell.net/mKwcF/show/

我的示例js在上面的给定链接上很简单:

My example js is simple on a given link above:

alert(window.location.href);

推荐答案

截至2014年10月,它比以前更加复杂:

As of October 2014 it is a little more complicated than it used to be:

If your jsfiddle url is: 

http://jsfiddle.net/u7G7n/44

use instead (including some url parameters):

http://fiddle.jshell.net/u7G7n/44/show/light/?lat1=52&lng1=9&lat2=50&lng2=1

并发送与引荐来源网址相同的网址(包括参数).您可以将Referer Control用作Chrome插件: https://chrome.google.com/webstore/detail/referer-control/hnkcfpcejkafcihlgbojoidoihckciin

AND send the same url (including parameters) as referer. You can use Referer Control as Chrome plugin: https://chrome.google.com/webstore/detail/referer-control/hnkcfpcejkafcihlgbojoidoihckciin

并像这样配置:

现在第二个链接(包括参数)应该可以工作了.

Now the second link (including parameters) should work.

插件RefControl在Firefox上运行良好: http://www.stardrifter.org/refcontrol/使用"fiddle.jshell.net"作为站点进行配置,然后选择"Forge"(用根地址替代).

Plugin RefControl works well for Firefox: http://www.stardrifter.org/refcontrol/ Configure with "fiddle.jshell.net" as site, then choose "Forge" (substitute with root address).

这篇关于如何将GET参数传递给jsFiddle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆