使用Joomla的jRoute库时POST URL的问题
Issue with POST URL when using Joomla's jRoute library
我正在使用Joomla的jRoute库,当我需要这种类型的控制台URL时,我的控制台请求URL Post http://localhost/jfirst/index.php/en/hospital
Post http://localhost/jfirst/
function get_state(e) {
$js.ajax({
url: "<?php JRoute::_('') ?>",
type: "POST",
dataType: 'json',
data: {
'option': 'com_doctors',
'view': 'hospital',
'task': 'get_state',
'id': e
},
beforeSend: function() {
},
success: function(res) {
$js('#city').html(res.html);
},
error: function() {
alert('error');
}
});
}
尝试使用<?php JRoute::_('index.php') ?>
我自己找到了问题,我使用了URL:",并且工作正常。
相关文章:
- 表单提交问题,如何在我的URL末尾获得ID的值
- 在 UIWebview 中加载带有帖子的 URL 时出现问题
- url的正则表达式有问题
- 有角度的seo友好URL和页面重新加载问题
- 使用jquery从URL中删除查询字符串(处理问题)
- 将 SVG 转换为图像时画布到 URL 功能出现问题
- 替换 URL 字符串中的撇号时出现问题
- 使用 window.open in JavaScript 的 URL 中的“/”问题
- 加载内联 SVG 时填充(url#)出现问题
- 基于 id 访问 url 时存在角度路由问题
- Ajax调用MVC控制器-URL问题
- angularjs中的波斯语URL问题
- 没有获取正确的url问题
- 从URL问题中获取模型
- javascript中的散列url问题
- 文档.IE中的url问题
- Url问题,无法检索?在地址栏中加载页面后tema=79
- JSF2.0 URL问题-来自JavaScript资源中的图像
- 如何解决ASP.使用子目录时,NET相对url问题
- Greybox图片未加载可能的URL问题