jquery:-[object Object] error

后端 未结 4 1003
难免孤独
难免孤独 2021-01-11 10:44

i have a validation.js file

var name = $(\"#name\");

    $.ajax({
        type:       \"get\",
        url:        \"test.jsp\",
        data:           \"n         


        
4条回答
  •  无人及你
    2021-01-11 11:22

    msg appears to be a document object, rather than a string containing the appropriate name. It seems to me that you want $('#response').text($(msg).find('h1').text());

提交回复
热议问题