ActiveXObject之 Excel.Application练习

本文介绍了如何通过ActiveXObject与Excel应用程序交互,实现自动化处理Excel文件。内容涵盖创建Excel对象、读写工作表数据等核心操作,适用于需要批量处理Excel数据的场景。
摘要由CSDN通过智能技术生成
<script type="text/javascript">
	
  
  	/**
		1.dataTransferAppoint 数据转换约定
		2.filePath 路径
		3.hasTitle EXCEL是否拥有标题行,默认为true
		4.lineCount 列总数
		5.stableLineCount 固定的列数
		6.hasSerialNumer EXCEL中是否拥有序号
	*/
	function dataTransferAppoint( filePath, hasTitle, rowsCount, lineCount, stableLineCount, hasSerialNumber) {
		this.filePath = filePath;
		this.hasTitle = hasTitle == undefined ? true : hasTitle;
		this.hasSerialNumber = hasSerialNumber;
		this.rowsCount = rowsCount;
		this.lineCount = lineCount;
		this.stableLineCount = stableLineCount;
		this.fxLineCount = 0;
		this.lineStartLine = 4;
		this.rowStartLine = 2;
		this.serialNumber = 0;
		
		/** 从已存在HTML的CONTEXT获取序列号 或者 自行产生序列号 */
		this.getSerialNumber = function () {
			var numberSize =  $('.serialNumer').size();
			if( numberSize > 0 ) {
			   this.serialNumber = numberSize == 1 ? $('.serialNume
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值