0

拜托,我需要帮助......我的功能不工作,有我的代码:

    var tel=99, nome='c';

     $('#listaCont').append("<li class='list-item-single-line selectable'><a href='#' onclick='pegarContactos( tel, nome)'> <h3>Célio Garcia</h3></a></li>");

和我的功能:

function pegarContactos (tel, nome){
        tel, nome,

        alert(nome);
    }

未捕获的 ReferenceError:未定义 pegarContactos

哪里错了???

4

0 回答 0