<!--To change this template, choose Tools | Templatesand open the template in the editor.--><!DOCTYPE html><html> <head> <title></title> <meta http-equiv="Content-Type" content="text/h…
http://jquery.malsup.com/form/#file-upload 在使用jQuery异步上传时,需要注意在存在文件上传时,要将返回数据的contentType设置为text/html,同时返回值应该为字符串 否则,该插件将不能执行参数success中指定回调函数. 原文如下: To account for the challenges of script and JSON responses when using the iframe mode, the Form Plugi…
using System; using System.Collections.Generic; using System.IO.Ports; using System.Text; //串口通讯类 public class SerialPortManager { //声明一个静态的串口资源 private SerialPort ComDevice = new SerialPort(); public SerialPortManager() { var portList = SerialPort.G…