jQuery¼¼Êõ

»ùÓÚJqueryÓëWebMethodͶƱ¹¦ÄÜʵÏÖ´úÂë(2)

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

/// summary /// ¶ÔÐÅÏ¢½øÐÐͶƱ£¬·µ»ØÖµ´óÓÚ0´ú±í³É¹¦ /// /summary /// paramÐÅÏ¢ID/param /// paramÓû§ID/param /// paramµÃ·Ö/param /// returns/returns [WebMethod] public string VoteMessage(int messageI


/// <summary> /// ¶ÔÐÅÏ¢½øÐÐͶƱ£¬·µ»ØÖµ´óÓÚ0´ú±í³É¹¦ /// </summary> /// <param>ÐÅÏ¢ID</param> /// <param>Óû§ID</param> /// <param>µÃ·Ö</param> /// <returns></returns> [WebMethod] public string VoteMessage(int messageID, int userID ,int Score) { SQLCMD = new SqlCommand("MessageInfo_Add_VoteUsefull_MessageIDUserID", SQLConnect); SQLCMD.CommandType = CommandType.StoredProcedure; SQLCMD.Parameters.Add(new SqlParameter("@messageID",SqlDbType.Int)); SQLCMD.Parameters["@messageID"].Value = messageID; SQLCMD.Parameters.Add(new SqlParameter("@userID",SqlDbType.Int)); SQLCMD.Parameters["@userID"].Value = userID; SQLCMD.Parameters.Add(new SqlParameter("@Score", SqlDbType.Int)); SQLCMD.Parameters["@Score"].Value = Score; float SuccessFlag = basicSQLAccess.ExeScalarReturnValueFloat(SQLCMD); Hashtable HTFlag = new Hashtable(); HTFlag.Add("SuccessFlag", SuccessFlag); return JsonConvert.SerializeObject(HTFlag); } ÒÔÉϾÍÊÇ»ùÓÚJqueryÓëWebMethodͶƱ¹¦ÄÜʵÏÖ´úÂ룬ϣÍû¶ÔÄújquery³ÌÐòÉè¼ÆÓÐËù°ïÖú¡£


JQueryͶƱ¹¦ÄÜ

¡¡

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

Ïà¹ØÎÄÕÂ
  • python ÅÀÈ¡w3shcoolµÄJQueryµÄ¿Î³Ì²¢ÇÒ±£´æµ½±¾µØ

    python ÅÀÈ¡w3shcoolµÄJQueryµÄ¿Î³Ì²¢ÇÒ±£´æµ½±¾µØ

    2017-04-09 09:00

  • jquery ajax·¢²¼µ½·þÎñÆ÷ºóÎÞ·¨Ê¹ÓõÄÎÊÌâ

    jquery ajax·¢²¼µ½·þÎñÆ÷ºóÎÞ·¨Ê¹ÓõÄÎÊÌâ

    2017-04-08 17:01

  • jqueryÔÚ×Ó´°¿ÚÖлñÈ¡¸¸´°¿Ú¿Ø¼þµÄÖµºÍ¸ø¸¸´°¿Ú¿Ø¼þ¸³Öµ

    jqueryÔÚ×Ó´°¿ÚÖлñÈ¡¸¸´°¿Ú¿Ø¼þµÄÖµºÍ¸ø¸¸´°¿Ú¿Ø¼þ¸³Öµ

    2017-04-08 17:00

  • Html5 jQueryʱ¹âÖáÉè¼Æ²å¼þÔ´´úÂëÏÂÔØ

    Html5 jQueryʱ¹âÖáÉè¼Æ²å¼þÔ´´úÂëÏÂÔØ

    2017-04-08 16:07

ÍøÓѵãÆÀ
¼