【发布时间】:2011-02-04 17:13:10
【问题描述】:
这是 jquery.ajax() 中有效的 url 参数吗,
<script type="text/javascript">
$(document).ready(function() {
getRecordspage();
});
function getRecordspage() {
$.ajax({
type: "POST",
url: "http://localhost/codeigniter_cup_myth/index.php/adminController/mainAccount",
data: "",
contentType: "application/json; charset=utf-8",
global:false,
async: false,
dataType: "json",
success: function(jsonObj) {
alert(jsonobj);
}
});
}
</script>
网址似乎没有转到我的控制器功能...
【问题讨论】:
标签: php jquery ajax url codeigniter