不知道其中的url怎么写
代码如下:
function jfif() /*对积分的操作*/
{
if(confirm("是否兑换?"))
{
$.ajax({
type: "POST",
url: "Index/jifeng",
data: "uid=1",
success: function(jf){
if(jf=="成功")
{
document.getElementById("sfzj").style.display="none";
document.getElementById("main").style.display="block";
}
}
});
}
}
代码如下:
function jfif() /*对积分的操作*/
{
if(confirm("是否兑换?"))
{
$.ajax({
type: "POST",
url: "Index/jifeng",
data: "uid=1",
success: function(jf){
if(jf=="成功")
{
document.getElementById("sfzj").style.display="none";
document.getElementById("main").style.display="block";
}
}
});
}
}
把你的目录结构贴出来看看
<?php
class IndexAction extends Action{
public function index(){
$this->display();
}
public function jifeng() //这个是jifeng的操作类
{
echo "成功";
}
}
?>
class IndexAction extends Action{
public function index(){
$this->display();
}
public function jifeng() //这个是jifeng的操作类
{
echo "成功";
}
}
?>
这段代码的文件名是什么?