的jsfiddle - 使用POST请求错误 [英] JSFiddle - Use POST request error

查看:164
本文介绍了的jsfiddle - 使用POST请求错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看了其他几个SO这个同样的错误问题,但他们似乎并不完全匹配我在做什么。

I've looked at several other SO questions about this same error, but they don't seem to quite match what I'm doing.

我工作了一个 AngularJS应用和放大器;尝试做内的jsfiddle 分页。当我点击我的链接,我得到一个错误: {错误:请使用POST请求}

大多数消息来源说,我需要简单地改变我的形式方法。但是,没有我在哪里使用GET或POST,所以不知道在哪里挂断正在发生。甚至试图设置断点,但是这并没有太大的帮助。

Most sources say that I need to simply change my form method. But no where am I using GET or POST, so not sure where the hangup is happening. Even tried setting breakpoints, but that didn't help much.

帮助将AP preciated!

Help would be appreciated!

注意 - 要获得同样的错误信息:您需要选择运行&放大器;然后点击链接

note- To get the same error message: you need to select "RUN" & then click on the link

推荐答案

当您第一次链接到它的工作的jsfiddle,因为该帧显示 http://fiddle.jshell.net/enigmarm/L7CSD/ 6 /显示/ 。当您点击运行它张贴的形式 http://fiddle.jshell.net/_display/ 渲染你的页面。在浏览器将 http://fiddle.jshell.net/_display/ (即:使用GET)会给你的错误。

When you first link to the jsfiddle it works because the frame shows http://fiddle.jshell.net/enigmarm/L7CSD/6/show/. When you click RUN it posts the form to http://fiddle.jshell.net/_display/ to render your page. Going to http://fiddle.jshell.net/_display/ in the browser (ie: using GET) will give you the error.

您有href =,这意味着单击它使用GET动词,而不是创建该呈现的页面后regets的页面。不要把HREF =上还是从请求页面停止它。

You have an href="" which means that clicking it regets the page using the GET verb instead of the post that created the rendered page. Don't put href="" on that or stop it from requesting the page.

这篇关于的jsfiddle - 使用POST请求错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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