未捕获的参考错误:$未定义get方法

时间:2015-10-31 18:04:54

标签: javascript

function s() 
{
    alert("hello");
    $email = document.getElementById("inp_subscribe").value;
    alert($email);
    $.get("subscribe.php",{inp_subscribe: $email },"");
    alert($email);
}

请帮助我了解如何使$.get()功能正常工作。

1 个答案:

答案 0 :(得分:1)

试试这段代码......

new predicate<T>(func<T, bool>)
function s() {
    alert("hello");
    var $email = document.getElementById("inp_subscribe").value;
    alert($email);
    $.get("subscribe.php",{inp_subscribe: $email },"");
    alert($email);
}