Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/241.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 您能指出如何使用jQuery在链接的右侧放置按钮吗?_Php_Jquery_Json_Ajax_Codeigniter - Fatal编程技术网

Php 您能指出如何使用jQuery在链接的右侧放置按钮吗?

Php 您能指出如何使用jQuery在链接的右侧放置按钮吗?,php,jquery,json,ajax,codeigniter,Php,Jquery,Json,Ajax,Codeigniter,我是新来的 您能指出如何使用jQuery在链接的右侧放置一个功能按钮吗 据此: if(field ==="anexo_v"){ if(value !==null){ $(".anexo_v").show(); var link = ""; $.each(value,function(id, valor){ var anexo = valor.anexo; anexo = anexo.spli

我是新来的

您能指出如何使用jQuery在链接的右侧放置一个功能按钮吗

据此:

if(field ==="anexo_v"){
    if(value !==null){
        $(".anexo_v").show();
        var link = "";
        $.each(value,function(id, valor){
            var anexo = valor.anexo;
            anexo = anexo.split("/");
            anexo = $(anexo).get(-1);
            //console.log(valor.anexo);
            link = link+"<p><a href=\'"+valor.anexo+ "\' target=\'_blank\'>"+anexo+"</a></p>";                                             ;
        });
        $("#anexo").html(link);
    }else{
        $(".anexo").hide();
    }
}
if(字段==“anexo_v”){
如果(值!==null){
$(“.anexo_v”).show();
var link=“”;
$.each(值、函数(id、值){
var anexo=valor.anexo;
anexo=anexo.拆分(“/”);
anexo=$(anexo.get(-1);
//console.log(valor.anexo);
link=link+“

”; }); $(“#anexo”).html(链接); }否则{ $(“.anexo”).hide(); } }
另外,这个按钮需要通过Ajax调用PHP Codeigniter的控制器来执行删除(Excluir表示删除)

提前谢谢

变化

link=link+”

link=link+”

function functionToMakeAjaxCall(parameter){
    //code to make ajax call to a controller to delete
}