我在以前的开发中经常遇到这样的场景:文件上传之后需要显示文件名,但是asp.net自带的fileupload是不能付给上传后的文件名值的. 以前都是做一个label显示的,今天想起来了,写个控件封装一下,直接上代码 控件的代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using System.Web; using System.Web.UI;
var path = require('path'); var glob = require('glob') var fs = require('fs'); var Promise = require('bluebird'); var readdir = Promise.promisify(fs.readdir); var rename = Promise.promisify(fs.rename); var readFile = Promise.promisify(fs.readFile); v
JS文件: var FileName = ""; var FileStr = ""; (function () { function $id(id) { return document.getElementById(id); } function Output(msg) { var m = $id("filedrag"); m.innerHTML = msg + m.innerHTML; } function FileDragHover(e) {