【问题标题】:Dojo JsonRest appends &name=* to target URLDojo JsonRest 将 &name=* 附加到目标 URL
【发布时间】:2014-03-10 15:52:13
【问题描述】:

我尝试使用 Dojo JsonRest 填充 dijit.form.select 框,并使用以下代码:

var stateStore = new JsonRest({target: "ip-address/activiti-rest/service/repository/process-definitions?startableByUser=kermit", headers: {"Authorization": "Basic a2VybWl0Omtlcm1pdA=="}});

问题是,目标 URL 扩展为 &name=* 因此,Server 会看到以下请求:ipaddress/activiti-rest/service/repository/process-definitions?startableByUser=kermit&name=*

我不知道&name=* 来自哪里。

我阅读了这篇文章:http://dojo-toolkit.33424.n3.nabble.com/dojox-data-JsonRestStore-appends-quot-Title-quot-to-my-target-url-why-td2012228.html 并使用了 allowNoTrailingSlash-Attribute 没有成功。

我的问题是如何避免目标网址被更改。我们必须避免 &name=* 附加在 URL 的末尾。

感谢您的问候

【问题讨论】:

    标签: javascript dojo dijit.form jsonreststore


    【解决方案1】:

    这是我的错,因为我使用了 dijit/form/FilteringSelect 而不是 dijit/form/Select。 FilteringSelect 允许您输入字母。这些字母被附加到网址中。

    【讨论】:

      猜你喜欢
      • 2012-12-07
      • 1970-01-01
      • 2019-06-22
      • 1970-01-01
      • 1970-01-01
      • 2012-06-05
      • 2014-03-07
      • 2012-04-07
      • 1970-01-01
      相关资源
      最近更新 更多