04 2019 档案

摘要:MySqlParameter p1 = new MySqlParameter("id", MySqlDbType.Int32); p1.Value = sid; MySqlParameter p2 = new MySqlParameter("result", MySqlDbType.Int32); 阅读全文
posted @ 2019-04-03 13:57 雨殇丶 阅读(1213) 评论(0) 推荐(0)
摘要:1、第一步 2、第二步 阅读全文
posted @ 2019-04-02 18:52 雨殇丶 阅读(372) 评论(0) 推荐(0)
摘要:1、创建DbHelperMySQL类 2、复制代码到类中 using System; using System.Collections; using System.Collections.Specialized; using System.Data; using MySql.Data.MySqlCl 阅读全文
posted @ 2019-04-02 18:26 雨殇丶 阅读(836) 评论(0) 推荐(0)
摘要:一、正常调用 1、创建DBHelper帮助类 2、复制以下代码到类中 using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; 阅读全文
posted @ 2019-04-02 18:22 雨殇丶 阅读(933) 评论(0) 推荐(0)
摘要:1、创建ApiHelper类 2、复制以下代码到类中 using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.T 阅读全文
posted @ 2019-04-02 18:15 雨殇丶 阅读(981) 评论(0) 推荐(0)
摘要:后台给三种值({0:''},{1:'是'},{2::'否'}),前端根据值显示对应内容。 value == 0 ? ' ' : value == 1 ? '是' : '否' 阅读全文
posted @ 2019-04-02 14:47 雨殇丶 阅读(2789) 评论(0) 推荐(0)
摘要:string str = "123abc456"; int i = 3; 1. 取字符串的前i个字符 str=str.Substring(0,i); 2. 去掉字符串的前i个字符 str=str.Substring(i); 3. 从右边开始取i个字符 str=str.Substring(str.Le 阅读全文
posted @ 2019-04-01 13:59 雨殇丶 阅读(62831) 评论(0) 推荐(1)