摘要:
参考资料: https://www.jianshu.com/p/9249ed03e745 GitHUb地址: https://github.com/AIlll/AndroidSerialPort AndroidSerialPort Android 串口通信,基于谷歌官方android-serialp 阅读全文
摘要:
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Net; using System.Net.Secur... 阅读全文
摘要:
https://www.jianshu.com/p/c65fbfe16e1a 阅读全文
摘要:
使用audio元素播放mp3 更改播放为先判断未在播放状态后,才播放: 参考资料: https://stackoverflow.com/questions/36803176/how-to-prevent-the-play-request-was-interrupted-by-a-call-to-pa 阅读全文
摘要:
public class BaseApiController : ApiController { private HttpRequestBase _request; /// 全局Requests对象 protected HttpRequestBase Requests { get ... 阅读全文
摘要:
一、NuGet安装Selenium.Chrome.WebDriver和Selenium.WebDriver 二、将packages\Selenium.Chrome.WebDriver.2.45\driver下的chromedriver.exe文件,复制到程序的bin目录下 三、截图工具类 阅读全文
摘要:
一、脚本引用 二、国际化,设置为简体中文,中文的星期是以星期一开始 下面就可以开始使用moment处理时间了,常用的方法: 格式化当前时间: 解析时间: 获取本日、本周、本月的时间范围: 本日: 本周: 本月: 阅读全文
摘要:
第一次用Highcharts画一个温度湿度变化的图片,因为不熟悉跳了好多坑,特记录下: 一、JS引用 二、添加图表的容器 三、设置Highcharts的汉化,和不使用UTC时间,在这里折腾时间够久,一把泪 三、初始化Highcharts 关键点: A、因为Highcharts使用的是UTC时间会导致 阅读全文
摘要:
因mvc控制器返回类型JsonResult 在处理对象转JSON的时候,对日期的格式化处理并不太符合要求,所以重新继承抽象类ActionResult使用Newtonsoft.Json来系列化 在静态构造函数里面设置了系列化日期的格式 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace Comon { public class CsvUtil { /// /// 生成Csv格式的字... 阅读全文