我有一个小问题。
我调用一个文件,这个文件必须知道调用它的级别。 我正在开发一种特殊的工具,这就是它在这里的运作方式。
例如:
var Url = baseUrl + "?func=ll&objId=" + WebreportId + "&objAction=RunReport";
jQuery.ajax({
url: Url,
type: "GET",
data: { level: 'dossier' },
success: function(response){
$('#thirdPartyContent').html($(response).find('#cvDossier').html());
}
});

在Call中的JavaScript函数中,我必须知道它被调用的级别。喜欢这里"档案"。
我怎样才能在通话中读出一个字符串?使用URL Parms我可以检查上级网址,而不是来自ajax网址的网址,不是吗?
我希望你理解我的probs。
答案 0 :(得分:0)
尝试使用{
"responsecode": 0,
"responsemessage": "Success",
"result": [
{
"BOOKID": "1",
"BOOKTITLE": "Nana in the City",
"BOOKCATALOGNUMBER": "abc 123",
"BOOKDESCRIPTION": "In this magical picture book, a young boy spends an overnight visit with his nana and is frightened to find that the city where she lives is filled with noise and crowds and scary things. But then Nana makes him a special cape to help him be brave, and soon the everyday sights, sounds, and smells of the city are not scary—but wonderful. The succinct text is paired with watercolor illustrations that capture all the vitality, energy, and beauty of the city.",
"PUBLISHERNAME": "Clarion Books",
"PUBLISHERCITY": "New York",
"TOTALCOPIES": "2",
"AVAILABLECOPIES": "1",
"LOANEDCOPIES": "1",
"AUTHOR": [
{
"AUTHORFNAME": "Lauren",
"AUTHORMNAME": null,
"AUTHORLNAME": "Castilo"
}
],
"BOOKCOPIES": [
{
"REFERENCENUMBER": "123456",
"COPYNUMBER": "1",
"ISBN": "978-0544104433",
"EDITION": "1",
"PUBLICATIONYEAR": "2014",
"LOANEDSTATUS": "1"
},
{
"REFERENCENUMBER": "1234567",
"
...
...
beforeSend
选项
$.ajax()