原创 easyui editor 自動計算
function dhrk_info_div1_f_bj() { var d1 = $("#dhrk_info_div1").find(".easyui-datagrid"); var d2 =
原创 微信小程序-獲得用戶openid、暱稱等信息的方式
var self = this; wx.login({ //登錄 success: function (res) {
原创 微信小程序的頁面跳轉及前後頁面傳值
第一頁 wxml頁面 <view class="shopping" wx:for="{{shops}}" wx:key="id"> <view bindtap="tapmine" id="{{item.id}}"
原创 微信小程序-基本開發邏輯原理
如下圖 點贊 收藏 分享 文章舉報
原创 PHP中過濾 特殊字符
public function zifutihuan($s) { $s = str_replace("\"", "\\\"", $s
原创 C# DATATABLE 重新排序
DataView dv = dt1.DefaultView; dv.Sort = " kjmc ";
原创 微信小程序-獲得微信用戶識別碼(OPENID) C#
//由於微信小程序前臺禁止直接訪問https://api.weixin.qq.com,所以在後臺訪問並返回對應的值 using System.Net; using System.Text; public string get_open
原创 ASP.NET MVC4- 基類構造函數跳轉頁面
public CoreController() { try
原创 html textarea 換行 保存到數據
前端 提交之前 將所有的回車符 "\n" 替換成 "<br/>" nr = nr.replace(/\n/g, "<br/>"); 前端 從數據讀取 var nr1 = json.rows[0]["neiRong"]; var reg
原创 在ASP.NET MVC 中將html代碼加載到前端
後端寫:ViewData["xwdt1"] = xwdt1; 前端寫:@Html.Raw(HttpUtility.HtmlDecode(ViewData["xwdt1"].ToString().Trim()));
原创 Modbus rtu CRC碼計算方式
private void button1_Click(object sender, EventArgs e) { string hex = textBox1.Text.Trim();
原创 C# 類十六進制字符串轉爲可發送的套接字包
string p="5A01FDFEFEA6"; byte[] data = new byte[6]; uint s4 = Convert.ToUInt32(p.Substring(i*2,2), 16);
原创 jQuery ajax 跨域
後臺:string r1 = "cd('xxx')"; return r1; 前端: function cs() { $.ajax({ type:"get
原创 c# 導出到excel
public void ExportToExcel(string FileType, string FileName, string ExcelContent) { System.Web.HttpC
原创 asp.net mvc 配置 umeditor
1,從UMEditor官網下載安裝包,隨便什麼版本的UTF-8版都可以,因爲就算你下載的.NET版本里面附帶的後端代碼也是不能直接使用的。 2,在wwwroot中建立一個文件夾來包含UMEditor的前端文件,比如我的是“umeditor