AJax¼¼Êõ

jQueryÓëjavascript¶ÔÕÕѧϰ »ñÈ¡...(2)

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-10-03 08:06 ÎÒÒªÆÀÂÛ( )

$("#Pagination").pagination(%=pageCount %Õâ¸ö¾ÍÊÇÆðµ½Á˼Ǽ×ÜÊýµÄ×÷Óᣠif (!IsPostBack) { SqlParameter[] p = { SqlHelper.MakeOutParam("@Counts", SqlDbType.Int, 4), SqlHelper.MakeInParam("@tblName",


$("#Pagination").pagination(<%=pageCount %>Õâ¸ö¾ÍÊÇÆðµ½Á˼Ǽ×ÜÊýµÄ×÷Óá£
if (!IsPostBack)
{
SqlParameter[] p =
{
SqlHelper.MakeOutParam("@Counts", SqlDbType.Int, 4),
SqlHelper.MakeInParam("@tblName", SqlDbType.VarChar, 128, "Products"),
SqlHelper.MakeInParam("@strGetFields", SqlDbType.VarChar,200, "*"),
SqlHelper.MakeInParam("@fldName", SqlDbType.VarChar, 128, "ProductID"),
SqlHelper.MakeInParam("@PageSize", SqlDbType.Int, 4, 20),
SqlHelper.MakeInParam("@PageIndex", SqlDbType.Int, 1, 1),
SqlHelper.MakeInParam("@OrderType", SqlDbType.Bit, 1, 0),
SqlHelper.MakeInParam("@strWhere", SqlDbType.VarChar, 1500, "")
};
DataTable dt = SqlHelper.ExecuteDataset(conn, CommandType.StoredProcedure, "sp_PageCut", p).Tables[0];
pageCount = Convert.ToInt32(p[0].Value.ToString());
}


ÖÁ´Ë£¬Õûƪ½éÉÜÈçºÎÀûÓÃjqueryµÄ²å¼þ---pagination½øÐзÖÒ³¾Í½éÉܵ½ÕâÀ¼òµ¥µÄ»Ø¹ËһϾÍÊÇÉùÃ÷°ó¶¨µÄtable£¬ÀûÓÃjqueryµÄajax·½·¨½øÐÐÊý¾Ý°ó¶¨µÄ£¬È»ºóÔÚºǫ́µÃµ½Êý¾Ýת»»Îªjson£¬Õû¸öÁ÷³Ì¾ÍÊÇÕâÑùµÄ£¬Ò²ÐíÄã»á¾õµÃÕâÑù×ö±È½Ï·±Ëö£¬²»ÖªÄãÓкθ߼û£¬¿ÉÒÔÔÚÏÂÃæµÄÆÀÂÛΪÎÒµã³ö£¬ÎÒ²»Ê¤¸Ð¼¤Å¶¡£^_^¡£Ð´²©¿ÍÕæµÄÊÇÒ»¼þͦ·ÑÉñµÄÊÂÇ飬²»¹ýÔÚдµÄ¹ý³ÌÖУ¬ÓÖÈÃ×Ô¼º¹®¹ÌÁËÒ»ÏÂÕâЩ֪ʶ£¬Ò²ÊǺܲ»´íµÄ¡£¾ÍÇë¸÷λ¿´¹ÙÆÀÂÛ°É¡£

¾­¹ýÇë½ÌÁËÃÀ¹¤ÁË£¬°ÑÒ³ÃæÖзÖÒ³µÄЧ¹û×ö³ÉÁËgifͼƬ£¬´ó¼Ò¿´¿´Í¼°É¡£

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • PHPÖÐʹÓÃjQuery+AjaxʵÏÖ·ÖÒ³²éѯ¶à¹¦ÄܲÙ×÷(ʾÀý½²½â)

    PHPÖÐʹÓÃjQuery+AjaxʵÏÖ·ÖÒ³²éѯ¶à¹¦ÄܲÙ×÷(ʾÀý½²½â)

    2017-10-01 13:01

  • JavaScriptѧϰ±Ê¼ÇÖ®¶èÐÔº¯ÊýʾÀýÏê½â

    JavaScriptѧϰ±Ê¼ÇÖ®¶èÐÔº¯ÊýʾÀýÏê½â

    2017-09-29 09:32

  • JavascriptÖÐdocument.createElementÓ÷¨Óë¼æÈÝÐÔ

    JavascriptÖÐdocument.createElementÓ÷¨Óë¼æÈÝÐÔ

    2017-09-18 18:03

  • ѧϰjavascript±Õ°ü

    ѧϰjavascript±Õ°ü

    2017-09-18 13:11

ÍøÓѵãÆÀ
µ