- 浏览: 12950462 次
- 性别:
- 来自: 大连
文章分类
最新评论
-
sanrenxing_1:
GoEasy 实时推送支持IE6-IE11及大多数主流浏览器的 ...
WindowsPhone消息推送服务 -
张砚辉:
两侧照片绕Y轴旋转后有锯齿,请问锯齿解决方案,很长时间没解决
自定义带倒影和偏转的超炫Gallery -
knight_black_bob:
能不能把你自己的博客整理下分类下,写了这么多 ,都不知道怎么查 ...
Android_View,ViewGroup,Window之间的关系 -
jeasonyoung:
你这个代码实现在iOS8下应该是滑不动的
UISlider 滑块控件—IOS开发 -
wx_hello:
如果能写个可运行的java程序,不胜感激。。。
rs232串口通信原理
uploadANDdowload
1. 把图片写入硬盘
// 获取线路code
code = util.getCircuitryCode(orgCode, po.getStartplace(),po.getTargetplace(), String.valueOf(po.getTraveldays()));
//工程类路径,用来获取保存头像的路径
String url = request.getSession().getServletContext()
.getRealPath(request.getRequestURI());
int a = url.lastIndexOf(File.separator);
url = url.substring(0, a);
StringBuffer dirPath =new StringBuffer(url).append(
File.separator).append("picture");
filePath = fileItem.getName();
if (filePath !=null && !"".equalsIgnoreCase(filePath)) {
//创建文件夹
createdir[微软用户1](code, dirPath);
TAttachment ta =new TAttachment();
//获取图片或文件的名字
fileName = filePath.substring(filePath.lastIndexOf("\\") + 1);
//循环图片名字判断是否有重复的
for (int i = 0; i < pathnameList.size(); i++) {
String beforFileName = (String) pathnameList.get(i);
if (beforFileName.equals(fileName)) {
fileName ="little"+ i+ filePath.substring(filePath.lastIndexOf("\\") + 1);
}
}
dirPath.append("/");
outPath = dirPath.toString() + fileName;
//写入文件
if (!"".equals(filePath)) {
ins = fileItem.getInputStream();
os = new FileOutputStream(outPath);
bytesRead = 0;
buffer =newbyte[4096];
while ((bytesRead = ins.read(buffer, 0, 4096)) != -1) {
os.write(buffer, 0, bytesRead);
}
buffer =null;
os.close();
ins.close();
}
fileSize = fileItem.getSize();
//把图片名字添加到list中,以便判断是否有相同的图片名字
pathnameList.add(fileName);
extend1 = fileName.substring(fileName.lastIndexOf(".") + 1);
byte[] bytes =newbyte[12];
ta.setName(fileName);
ta.setContexts(bytes);
ta.setCreatetime(new Date());
ta.setCreatorid(creatorid);
ta.setCreatororgid(creatororgid);
ta.setCreatorip(ip);
ta.setExtend(extend1);
ta.setFilepath("/picture/circuitryPictrue/" + code
+ "/" + fileName);
2. 复制
code = util.getCircuitryCode(orgCode, po.getStartplace(),po.getTargetplace(), String.valueOf(po.getTraveldays()));
//工程类路径,用来获取保存头像的路径
String url = request.getSession().getServletContext().getRealPath(request.getRequestURI());
int a = url.lastIndexOf(File.separator);
url = url.substring(0, a);
StringBuffer dirPaths =new StringBuffer(url);//用来删除文件用的
StringBuffer dirPath =new StringBuffer(url).append(File.separator).append("picture");
String fileid = fileItem.getFieldName();// 用来获取浏览文本框的ID
filePath = fileItem.getName();
//获取图片或文件的名字
fileName = filePath.substring(filePath.lastIndexOf("\\") + 1);
if (fileid.equals("haveBigPic")) {
if (filePath ==null || filePath.equals("")) {
type = "BIGPIC";
attachement =logic.getAttachment(relationId, type);
//调用复制的方法
filePath =copyPicture[微软用户2](code, ip, filePath,creatororgid, creatorid, set_ta, tattBig,attachement, dirPaths, dirPath);
3. 修改TAttachment ta =null;
//工程类路径,用来获取保存头像的路径
String url = request.getSession().getServletContext()
.getRealPath(request.getRequestURI());
int a = url.lastIndexOf(File.separator);
url = url.substring(0, a);
StringBuffer dirPath =new StringBuffer(url).append(
File.separator).append("picture");
StringBuffer dirPaths =new StringBuffer(url);//此字符串用来删除文件夹的
String fileid = fileItem.getFieldName();// 用来获取浏览文本框的ID
filePath = fileItem.getName();
if (filePath !=null && !"".equalsIgnoreCase(filePath)) {
//创建文件夹
createdir(code, dirPath);
fileName = filePath.substring(filePath
.lastIndexOf("\\") + 1);
//调用处理图片同名的方法
fileName = picrename[微软用户3](code, filePath, fileName, po,
pathnameList, dirPaths, fileid);
dirPath.append("/");
outPath = dirPath.toString() + fileName;
//写入文件说
if (!"".equals(filePath)) {
ins = fileItem.getInputStream();
os = new FileOutputStream(outPath);
bytesRead = 0;
buffer =newbyte[4096];
while ((bytesRead = ins.read(buffer, 0, 4096)) != -1) {
os.write(buffer, 0, bytesRead);
}
buffer =null;
os.close();
ins.close();
}
fileSize = fileItem.getSize();
pathnameList.add(fileName);//把filename存入list,用来判断图片重名
extend1 = fileName
.substring(fileName.lastIndexOf(".") + 1);
byte[] bytes =newbyte[12];
Set ts = po.getTAttachments();
Iterator it = ts.iterator();
boolean flag =false;
if ("haveBigPic".equalsIgnoreCase(fileItem
.getFieldName())) {
while (it.hasNext()) {
ta = (TAttachment) it.next();
if (Constants.C_ATTACHMENT_TYPE_BIG
.equalsIgnoreCase(ta.getType())) {
flag = true;
break;
}
}
} elseif ("haveLittlePic".equalsIgnoreCase(fileItem
.getFieldName())) {
while (it.hasNext()) {
ta = (TAttachment) it.next();
if (Constants.C_ATTACHMENT_TYPE_SMALL.equalsIgnoreCase(ta.getType())) {
flag =true;
break;
}
}
} elseif ("haveWordFile".equalsIgnoreCase(fileItem
.getFieldName())) {
while (it.hasNext()) {
ta = (TAttachment) it.next();
if (Constants.C_ATTACHMENT_TYPE_DOC
.equalsIgnoreCase(ta.getType())) {
flag = true;
break;
}
}
}
if (flag) {
if (Constants.C_ATTACHMENT_TYPE_BIG
.equalsIgnoreCase(ta.getType())) {
if ("bmp".equalsIgnoreCase(extend1)
||"gif".equalsIgnoreCase(extend1)
|| "jpg".equalsIgnoreCase(extend1)
|| "jpeg".equalsIgnoreCase(extend1)
|| "tiff".equalsIgnoreCase(extend1)
|| "psd".equalsIgnoreCase(extend1)
|| "png".equalsIgnoreCase(extend1)
|| "swf".equalsIgnoreCase(extend1)) {
ta.setKind(Constants.C_ATTACHMENT_KIND_PHO);
ta.setType(Constants.C_ATTACHMENT_TYPE_BIG);
} else {
thrownew BusinessException("请上传正确的格式图片");
}
} elseif (Constants.C_ATTACHMENT_TYPE_SMALL
.equalsIgnoreCase(ta.getType())) {
if ("jpg".equalsIgnoreCase(extend1)) {
ta.setKind(Constants.C_ATTACHMENT_KIND_PHO);
ta
.setType(Constants.C_ATTACHMENT_TYPE_SMALL);
} else {
thrownew BusinessException("请上传JPG格式图片");
}
} elseif (Constants.C_ATTACHMENT_TYPE_DOC
.equalsIgnoreCase(ta.getType())) {
if ("doc".equalsIgnoreCase(extend1)
||"pdf".equalsIgnoreCase(extend1)
|| "xls".equalsIgnoreCase(extend1)) {
ta.setKind(Constants.C_ATTACHMENT_KIND_DOC);
ta.setType(Constants.C_ATTACHMENT_TYPE_DOC);
} else {
thrownew BusinessException(
"请上传WORD文档或PDF文件");
}
}
ta.setContexts(bytes);
ta.setName(fileName);
ta.setContexts(bytes);
ta.setCreatetime(new Date());
ta.setCreatorid(changerid);
ta.setCreatororgid(changerorgid);
ta.setCreatorip(ip);
ta.setExtend(extend1);
ta.setFilepath("/picture/circuitryPictrue/" + code
+ "/" + fileName);
ta.setFilesize(String.valueOf(fileSize));
set.add(ta);
3. 读取到界面
//把图片读入页面
public ActionForward readpic(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
File uploadFile = null;
try {
String id = request.getParameter("id");
TAttachment t = (TAttachment)logic.getDao().getHibernateTemplate()
.get(TAttachment.class, id);
//获取取数据库中的filepath路径
String bytes = t.getFilepath();
//工程类路径,用来获取保存头像的路径
String url = request.getSession().getServletContext().getRealPath(
request.getRequestURI());
int a = url.lastIndexOf(File.separator);
url = url.substring(0, a);
BufferedInputStream bis =null;
BufferedOutputStream bos =null;
OutputStream fos = null;
InputStream fis = null;
String filepath = bytes;
uploadFile = new File(url + filepath);
fis = new FileInputStream(uploadFile);
bis = new BufferedInputStream(fis);
fos = response.getOutputStream();
bos = new BufferedOutputStream(fos);
//这个就就是弹出下载对话框的关键代码
// response.setHeader("Content-disposition", "attachment;filename="
// + URLEncoder.encode(bytes, "utf-8"));
int bytesRead = 0;
//用输入流进行先读,然后用输出流去写
byte[] buffer =newbyte[8192];
while ((bytesRead = bis.read(buffer, 0, 8192)) != -1) {
bos.write(buffer, 0, bytesRead);
}
bos.flush();
fis.close();
bis.close();
fos.close();
bos.close();
} catch (Exception ex) {
return mapping.findForward("error");
}
returnnull;
4. }
5下载附件,如word,pdf等等
public ActionForward download(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
byte[] buffer;
InputStream ins;
String id = "", dirPaths, filepath;
try {
//工程类路径,用来获取保存头像的路径
String url = request.getSession().getServletContext().getRealPath(
request.getRequestURI());
int a = url.lastIndexOf(File.separator);
url = url.substring(0, a);
id = request.getParameter("id");
TAttachment ta = (TAttachment)logic.load(TAttachment.class, id);
filepath = ta.getFilepath();
dirPaths = url + filepath;
//读取文件
if (!"".equals(dirPaths)) {
ins = new FileInputStream(dirPaths);
int bytesRead = 0;
buffer = newbyte[4096];
response.setContentType("application/x-msdownload");
response.setHeader("Content-Disposition","attachment;"
+ " filename="
+ new String(ta.getName().getBytes(),"ISO-8859-1"));
while ((bytesRead = ins.read(buffer, 0, 4096)) != -1) {
logic.write(response.getOutputStream(), buffer);
}
buffer = null;
ins.close();
}
} catch (Exception ex) {
request.setAttribute(Constants.C_ERROR_MSG,"文件下载出现错误");
return mapping.findForward("error");
}
returnnull;
}
6.Byte转换为输入流
// 获取没有存入到硬盘的图片,然后把图片添加到硬盘
public ActionForward movePitureToDir(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response)throws Exception {
String outPath = "", fileName;
byte[] buffer =null;
OutputStream os = null;
byte[] bytes =newbyte[12];
byte[] bytes1;
Map map = new HashMap();
//工程类路径,用来获取保存图片的路径
String url = request.getSession().getServletContext().getRealPath(request.getRequestURI());
int a = url.lastIndexOf(File.separator);
url = url.substring(0, a);
StringBuffer dirPath = new StringBuffer(url).append(File.separator).append("picture");
//查找附件信息
List list = logic.getAttamentsByfilePath("/picture/circuitryPictrue");
if (list !=null) {
//创建文件夹picture
File fpath = new File(dirPath.toString());
if (!fpath.exists()) {
fpath.mkdir();
}
//创建用户照片文件夹
dirPath.append("/").append("circuitryPictrue");
fpath = new File(dirPath.toString());
if (!fpath.exists()) {
fpath.mkdir();
}
dirPath.append("/");
for (int i = 0; i < list.size(); i++) {
map = (Map) list.get(i);
String id = map.get("id").toString();
TAttachment attaches =logic.getAttachment(id);
TCircuitry tc = (TCircuitry)logic.getDao().getHibernateTemplate().get(TCircuitry.class,attaches.getRelationid());
if (tc !=null) {
StringBuffer strbf =new StringBuffer(dirPath);
//创建某条线路的图片文件夹
strbf.append(tc.getCode());
fpath = new File(strbf.toString());
//如果用户文件夹不存在,则创建用户文件夹
if (!fpath.exists()) {
fpath.mkdir();
}
//获取图片的名字
fileName = attaches.getName();
strbf.append("/");
outPath = strbf.toString() + fileName;
if (!"".equals(attaches.getFilepath()) && attaches.getFilepath()!=null && !"".equals(attaches.getContexts()) && attaches.getContexts()!=null) {
bytes1 = attaches.getContexts();
//把字节转换为输入流
ByteArrayInputStream bis =new ByteArrayInputStream(bytes1);
os = new FileOutputStream(outPath);
buffer = newbyte[4096];
int len = 0;
while ((len = bis.read(buffer)) != -1) {
os.write(buffer, 0, len);
}
buffer = null;
bis.close();
os.close();
attaches.setFilepath("/picture/circuitryPictrue/"+ tc.getCode() +"/" + fileName);
attaches.setContexts(bytes);
logic.update(attaches);
}
} else {
logic.deleteAttachmentById(id);
}
}
}
returnthis.init(mapping, form, request, response);
}
7.删除文件夹中的文件
/**
*根据用户id查找图片,把没有存入磁盘的数据存入磁盘
*
*@parammapping
*@paramform
*@paramrequest
*@paramresponse
*@return
*@throwsException
*/
public ActionForward findPicture(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
String outPath = "", fileName;
byte[] buffer =null;
OutputStream os = null;
byte[] bytes =newbyte[12];
byte[] bytes1;
//工程类路径,用来获取保存头像的路径
String url = request.getSession().getServletContext().getRealPath(
request.getRequestURI());
int a = url.lastIndexOf(File.separator);
url = url.substring(0, a);
StringBuffer dirPath = new StringBuffer(url).append(File.separator)
.append("picture");
UserBusIface service = (UserBusIface)this.getObject();
List list = service.getUnloadAttachement(FileTypeEnum.USERPIC,
"/picture/userPhoto");
if (list !=null) {
//创建文件夹picture
File fpath = new File(dirPath.toString());
if (!fpath.exists()) {
fpath.mkdir();
}
//创建用户照片文件夹
dirPath.append("/").append("userPhoto");
fpath =new File(dirPath.toString());
if (!fpath.exists()) {
fpath.mkdir();
}
dirPath.append("/");
for (int i = 0; i < list.size(); i++) {
AttachmentPO attache = (AttachmentPO) list.get(i);
UserVO userpo = service.gainUserById(attache.getRelationId());
if (userpo !=null) {
StringBuffer strbf =new StringBuffer(dirPath);
//创建某个用户的图片文件夹
strbf.append(userpo.getCode());
fpath =new File(strbf.toString());
//如果用户文件夹不存在,则创建用户文件夹
if (!fpath.exists()) {
fpath.mkdir();
} else {
//调用删除文件夹及文件夹的内容方法
fpath.mkdir();
}
// 获取图片的名字
fileName = attache.getName();
strbf.append("/");
outPath = strbf.toString() + fileName;
if (!"".equals(attache.getFilePath()) && attache.getFilePath()!=null && !"".equals(attache.getContexts()) && attache.getContexts()!=null) {
bytes1 = attache.getContexts();
ByteArrayInputStream bis =new ByteArrayInputStream(bytes1);
os = new FileOutputStream(outPath);
buffer = newbyte[4096];
int len = 0;
while ((len = bis.read(buffer)) != -1) {
os.write(buffer, 0, len);
}
buffer = null;
bis.close();
os.close();
attache.setFilePath("/picture/userPhoto/"
+ userpo.getCode() +"/" + fileName);
attache.setContexts(bytes);
service.update(attache);
}
}
}
}
returnthis.manageUserinfoPage(mapping, form, request, response);
}
[微软用户1]// 创建文件夹
privatevoidcreatedir(String code, StringBuffer dirPath) {
//创建文件夹picture
File fpath = new File(dirPath.toString());
if (!fpath.exists()) {
fpath.mkdir();
}
//创建用户照片文件夹
dirPath.append("/").append("circuitryPictrue");
fpath = new File(dirPath.toString());
if (!fpath.exists()) {
fpath.mkdir();
}
//创建某个用户的图片文件夹
dirPath.append("/").append(code);
fpath = new File(dirPath.toString());
if (!fpath.exists()) {
fpath.mkdir();
}
}
[微软用户2]// 复制的方法
private StringcopyPicture(String code, String ip, String filePath,
String creatororgid, String creatorid, Set set_ta,
TAttachment tattBig, List attachement, StringBuffer dirPaths,
StringBuffer dirPath)throws FileNotFoundException, IOException {
String fileName;
String outPath;
int bytesRead;
byte[] buffer;
InputStream ins;
OutputStream os;
if (attachement !=null && attachement.size() > 0) {
//创建文件夹
createdir(code, dirPath);
TAttachment tatt = (TAttachment) attachement.get(0);
filePath = tatt.getFilepath();
//获取图片路径和文件的名字
fileName = filePath.substring(filePath.lastIndexOf("\\") + 1);
int b = fileName.lastIndexOf("/") + 1;
fileName = fileName.substring(b);
dirPath.append("/");
outPath = dirPath.toString() + fileName;
//写入文件
if (!"".equals(filePath)) {
ins = new FileInputStream(dirPaths + filePath);
os = new FileOutputStream(outPath);
bytesRead = 0;
buffer = newbyte[4096];
while ((bytesRead = ins.read(buffer, 0, 4096)) != -1) {
os.write(buffer, 0, bytesRead);
}
buffer = null;
os.close();
ins.close();
}
tattBig.setContexts(tatt.getContexts());
tattBig.setCreatetime(new Date());
tattBig.setCreatorid(creatorid);
tattBig.setCreatorip(ip);
tattBig.setCreatororgid(creatororgid);
tattBig.setExtend(tatt.getExtend());
tattBig.setFilepath("/picture/circuitryPictrue/" + code +"/"+ fileName);
tattBig.setFilesize(tatt.getFilesize());
tattBig.setKind(tatt.getKind());
tattBig.setName(tatt.getName());
tattBig.setType(tatt.getType());
set_ta.add(tattBig);
}
return filePath;
}
[微软用户3]// 处理同名的图片方法
private Stringpicrename(String code, String filePath, String fileName,
TCircuitry po, List pathnameList, StringBuffer dirPaths,
String fileid) throws SysException {
File fpaths;
List attachetype;
TAttachment tat;
//把传过来的图片路径字段查询附件,看是否存在相同的图片,如果有相同的,则添加到pathnameList中
String filena = "/picture/circuitryPictrue/" + code + "/" + fileName;
List listpic = logic.getAttachmentbyId(po.getId(), filena);
if (listpic !=null && listpic.size() > 0) {
TAttachment tatt = (TAttachment) listpic.get(0);
String filep = tatt.getFilepath();
int b = filep.lastIndexOf("/") + 1;
filep = filep.substring(b);
pathnameList.add(filep);
}
//循环pathnameList判断是否有重名的图片
if (pathnameList !=null && pathnameList.size() > 0) {
for (int i = 0; i < pathnameList.size(); i++) {
String beforFileName = (String) pathnameList.get(i);
if (fileid.equals("haveBigPic")
&& beforFileName.equals(fileName)) {
fileName = "big"+ i+ 1+ filePath
.substring(filePath.lastIndexOf("\\") + 1);
attachetype = logic.getAttachment(po.getId(), "BIGPIC");
if (attachetype !=null && attachetype.size() > 0) {
tat = (TAttachment) attachetype.get(0);
//删除图片磁盘原来的大图片
dirPaths = dirPaths.append(tat.getFilepath());
fpaths = new File(dirPaths.toString());
if (fpaths.exists()) {
fpaths.delete();
}
}
}
if (fileid.equals("haveLittlePic")
&& beforFileName.equals(fileName)) {
fileName = "little"
+ i
+ 1
+ filePath
.substring(filePath.lastIndexOf("\\") + 1);
attachetype = logic.getAttachment(po.getId(), "LITTLEPIC");
if (attachetype !=null && attachetype.size() > 0) {
tat = (TAttachment) attachetype.get(0);
//删除磁盘原来的小图片
dirPaths = dirPaths.append(tat.getFilepath());
fpaths = new File(dirPaths.toString());
if (fpaths.exists()) {
fpaths.delete();
}
}
}
else {
if (fileid.equals("haveBigPic")) {
attachetype =logic.getAttachment(po.getId(),"BIGPIC");
if (attachetype !=null && attachetype.size() > 0) {
tat = (TAttachment) attachetype.get(0);
//删除图片
dirPaths = dirPaths.append(tat.getFilepath());
fpaths =new File(dirPaths.toString());
if (fpaths.exists()) {
fpaths.delete();
}
}
}
if (fileid.equals("haveLittlePic")) {
attachetype =logic.getAttachment(po.getId(),
"LITTLEPIC");
if (attachetype !=null && attachetype.size() > 0) {
tat = (TAttachment) attachetype.get(0);
//删除图片
dirPaths = dirPaths.append(tat.getFilepath());
fpaths =new File(dirPaths.toString());
if (fpaths.exists()) {
fpaths.delete();
}
}
}
if (fileid.equals("haveWordFile")) {
attachetype =logic.getAttachment(po.getId(),"WORD");
if (attachetype !=null && attachetype.size() > 0) {
tat = (TAttachment) attachetype.get(0);
//删除图片
dirPaths = dirPaths.append(tat.getFilepath());
fpaths =new File(dirPaths.toString());
if (fpaths.exists()) {
fpaths.delete();
}
}
}
}
}
} else {
if (fileid.equals("haveBigPic")) {
attachetype = logic.getAttachment(po.getId(), "BIGPIC");
if (attachetype !=null && attachetype.size() > 0) {
tat = (TAttachment) attachetype.get(0);
//删除图片
dirPaths = dirPaths.append(tat.getFilepath());
fpaths = new File(dirPaths.toString());
if (fpaths.exists()) {
fpaths.delete();
}
}
}
if (fileid.equals("haveLittlePic")) {
attachetype = logic.getAttachment(po.getId(), "LITTLEPIC");
if (attachetype !=null && attachetype.size() > 0) {
tat = (TAttachment) attachetype.get(0);
//删除图片
dirPaths = dirPaths.append(tat.getFilepath());
fpaths = new File(dirPaths.toString());
if (fpaths.exists()) {
fpaths.delete();
}
}
}
if (fileid.equals("haveWordFile")) {
attachetype = logic.getAttachment(po.getId(), "WORD");
if (attachetype !=null && attachetype.size() > 0) {
tat = (TAttachment) attachetype.get(0);
//删除图片
dirPaths = dirPaths.append(tat.getFilepath());
fpaths = new File(dirPaths.toString());
if (fpaths.exists()) {
fpaths.delete();
}
}
}
}
return fileName;
}
[微软用户4]/**
*删除硬盘中文件夹中的方法
*
*@paramf
*/
publicstaticvoiddeleteAll(File f) {
if (f.isFile()) {
f.delete();
} else {
//获得当前文件夹下的所有子文件和子文件夹
File f1[] = f.listFiles();
//循环处理每个对象
int len = f1.length;
for (int i = 0; i < len; i++) {
//递归调用,处理每个文件对象
deleteAll(f1[i]);
}
//删除当前文件夹
f.delete();
}
}
相关推荐
peak-linux-driver-8.15.2.tar
VSCodeUserSetup-x64-1.86.1
高分毕业设计 毕业设计源码 使用ncnn在ios+android上部署yolov5源码+详细说明.zip 高分毕业设计 毕业设计源码 使用ncnn在ios+android上部署yolov5源码+详细说明.zip 高分毕业设计 毕业设计源码 使用ncnn在ios+android上部署yolov5源码+详细说明.zip 高分毕业设计 毕业设计源码 使用ncnn在ios+android上部署yolov5源码+详细说明.zip 高分毕业设计 毕业设计源码 使用ncnn在ios+android上部署yolov5源码+详细说明.zip 高分毕业设计 毕业设计源码 使用ncnn在ios+android上部署yolov5源码+详细说明.zip 高分毕业设计 毕业设计源码 使用ncnn在ios+android上部署yolov5源码+详细说明.zip 高分毕业设计 毕业设计源码 使用ncnn在ios+android上部署yolov5源码+详细说明.zip 高分毕业设计 毕业设计源码 使用ncnn在ios+android上部署yolov5源码+详细说明.zip
课设毕设基于SSM的医院远程诊断系统--LW+PPT+源码可运行.
Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。
Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。
matlab实用的例程详解可供学习与参考理解,MATLAB 已经受了用户的多年考验 在欧美发达国家 MATLAB 已经成为应用线性代数 自动控制理论 数理统计 数字信号处理 时间序列分析 动态系统仿真等高级课程的基本教学工具 成为攻读学位的大学生 硕士生 博士生必须掌握的基本技能 在设计研究单位和工业部门 MATLAB 被广泛地用于研究和解决各种具体工程问题。
Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。
javascript 中关于 this 的用法.zip
【课程设计】基于python实现多AGV路径规划算法研究源码.zip
【课程设计】基于间接卡尔曼滤波的IMU与GPS融合MATLAB仿真(IMU与GPS数据由仿真生成)源码.zip
静态网页比赛.zip
【毕业设计】缺陷检测-基于深度学习实现的高效轮胎磨损+缺陷检测算法实现python源码.zip
开发语言:java 框架:springboot,vue JDK版本:JDK1.8 数据库:mysql5.7+(推荐5.7,8.0也可以) 数据库工具:Navicat11+ 开发软件:idea/eclipse(推荐idea)
21级太原理工大学JACVAEE实验报告,各位当个参考即可,不用过分较真,如果与你们想法不同,请以自己为主,各位加油。
Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。
运用java语言设计了一个针对TCP/IP网络的基于SNMP网络设备的MIB信息采集系统。 这个系统采用三层模型进行设计 最底层负责SNMP中基本对象编码、定义,与设备连接通信等; 中间层在底层的基础上定义了MIB对象,负责OID与MIB对象间的转换,分析MIB信息文件以生成MIB树型结构,单个MIB变量信息查询等功能 顶层,即界面层则在中间层的基础上实现了用户界面。
QuarkCloudDrive网盘
Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。