1. 导出exl表格,创建表格导出到客户端 public static MemoryStream Export_Table<T>(List<T> datalist) { MemoryStream ms = new MemoryStream(); var members = typeof(T).GetProperties(); var workbook = new NPOI.HSSF.UserModel.HSSFWorkbook(); NPOI.SS.UserModel.ISheet…
函数写法区别 计算a, b两个数字之和,有返回值 es5 写法 function add(a, b) { return a + b; } es6 写法(箭头函数) let add = (a, b) => { return a + b } 注意: 箭头函数作用于执行代码,这时使用{} let add = (a, b) => {a + b} 当执行的代码语句只有一个逻辑表达式,这时可以省略{} let add = (a, b) => a + b 箭头函数用于返回对象时,这时使用() let…
var testdata='sdfkshdf'; //export testdata;//err export {testdata as ms}; export var firstName = 'Michael'; export var lastName = 'Jackson'; export var year = 1958; import $ from 'jquery'; import lastName from './index2.js'; import {ms} from './index…