我正在尝试将newsapi.org中的新闻解析为Jquery Mobile应用程序,但它似乎不起作用,如下所示我的js到html代码。有人可以给我一些胶水吗?它只显示没有回复新闻api的页面:
public static decimal accountDefinitiveID { get; set; }
public static void GetDefinitiveID(decimal LedgerID)
{
var query = database.Database.SqlQuery<tbl_AccountDefinitive>("Select Top(1) *From tbl_AccountDefinitive Where LedgerID='" + LedgerID + "' Order By DefinitiveID DESC");
var result = query.ToList();
if (result.Count == 1)
{
accountDefinitiveID = result[0].DefinitiveID + 1;
}
if (result.Count == 0)
{
switch (Convert.ToInt32(LedgerID))
{
case 100:
accountDefinitiveID = 10001;
break;
case 101:
accountDefinitiveID = 10101;
break;
case 102:
accountDefinitiveID = 10201;
break;
case 200:
accountDefinitiveID = 20001;
break;
case 201:
accountDefinitiveID = 20101;
break;
case 305:
accountDefinitiveID = 30501;
break;
case 400:
accountDefinitiveID = 40001;
break;
case 509:
accountDefinitiveID = 50901;
break;
case 600:
accountDefinitiveID = 60001;
break;
case 700:
accountDefinitiveID = 70001;
break;
case 800:
accountDefinitiveID = 80001;
break;
case 900:
accountDefinitiveID = 90001;
break;
}
}
}