1.工具类public class InExcelTool { //根据指定位置单独读取一个 public static String getContent(String file, int page, int i, int j){ String s = null; try { //解析 org.apache.poi.ss.usermodel.Workbook workbook = null; NumberFormat nf = NumberFormat.getInstance(); //文件后
我之前写过一篇PHP读取csv文件的内容 上代码index.php <?php /** * * @author XC * */ class Excel { public $currentSheet; public $filePath; public $fileType; ; public $allColumn; public $allRow; public function initialized($filePath) { if (file_exists($filePath)) { $this-