05 2017 档案
摘要:资料:https://msdn.microsoft.com/zh-cn/library/microsoft.win32.registry.aspx Registry需要引用using Microsoft.Win32; public void getStr() { XmlDocument xd = n
阅读全文
摘要://需引用using System.Xml; #region writeXML readXML public static void writeXML(string fileName, string userName) { System.Xml.XmlDocument myDoc = new Sys
阅读全文
摘要:/** 数字转中文大写 * num:要转换的数值 */ function trunMoneyZH(num) { var strOutput = ""; var strUnit = '仟佰拾亿仟佰拾万仟佰拾元角分'; num += "00"; var intPos = num.indexOf('.')
阅读全文
摘要:word-break:break-all; word-wrap: break-word; word-wrap是控制换行的。 兼容 IE 和 FF 的换行 CSS 推荐样式 最好的方式是 而不是 也不是 在 IE 下没有任何问题,在 FF 下,长串英文会被遮住超出的内容。 word-wrap同word
阅读全文
摘要:思路,根据请求返回的响应头的Content-Type类型中的charset编码类型去编码抓取的内容,达到解决乱码的目的 public static string GetHtml(string url) { string htmlCode; HttpWebRequest webRequest = (S
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq; public class Kata { public static int[] DeleteNth(int[] arr, int x) { // ... //var re
阅读全文
摘要:参考 http://blog.csdn.net/leytton/article/details/51896738 1、引入M2MQTT的dll库文件 点击此处下载 2、建立客户端连接并订阅 3、发布消息
阅读全文
摘要:函数 应用程序调用socket函数来创建一个能够进行网络通信的套接字。 头文件 #include <sys/types.h> #include <sys/socket.h> 函数原型 int socket(int domain, int type, int protocol); 第一个参数指定应用程
阅读全文
摘要:C# 提交网页请求时出现如下错误: System.Net.WebException: 操作超时 原因一: 连接超时时间 Timeout 以及写入Post数据超时时间 ReadWriteTimeout 设置得太短,一般要设置大于6000ms。 原因二: Expect100Continue 属性的值设置
阅读全文

浙公网安备 33010602011771号