java 生成表格pdf文件
---
```java
package com.ucmed.auto.util;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.Date;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
import com.itextpdf.text.BaseColor;
import com.itextpdf.text.Chunk;
import com.itextpdf.text.Document;
import com.itextpdf.text.Element;
import com.itextpdf.text.Font;
import com.itextpdf.text.Image;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.BaseFont;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
import com.ucmed.common.util.DateUtil;
import com.ucmed.model.User;
public class PrescriptionPdfUtilThree {
public static void main(String[] args) {
try {
String filePath = "E:/1.pdf";
OutputStream outputStream = new FileOutputStream(filePath);
JSONObject patient = new JSONObject();
JSONObject diagnosis = new JSONObject();
patient.put("name", "宋小小");
patient.put("sex", "男");
patient.put("age", "24");
patient.put("treatment_card", "B14684090");
patient.put("phone", "13500000000");
patient.put("department", "呼吸內科");
diagnosis.put("before_diagnosis", "上呼吸道感染");
User user = new User();
user.setUserName("謝旭東");
user.setLoginName("7165");
createPdfContext(outputStream, patient, diagnosis, user, "E:/erCode2.png");
System.out.println("生成成功了");
} catch (Exception e) {
System.out.println("生成失敗");
e.printStackTrace();
}
}
public static void createPdfContext(OutputStream out, JSONObject patient, JSONObject diagnosis, User user, String codePath) throws Exception {
Document doc = new Document(PageSize.A4, 20, 20, 20, 20);
Date currentDate = DateUtil.getCurrentDate();
Font font;
// BaseFont bfChinese = BaseFont.createFont("D:/java/workspace-tjpt/tjpt/tjpt/WebContent/resources/simsun.ttf", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
// BaseFont bfChineseHuawen = BaseFont.createFont("D:/java/workspace-tjpt/tjpt/tjpt/WebContent/resources/huawenkt.ttf", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
BaseFont bfChinese = BaseFont.createFont("../../fonts/simsun.ttf", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
BaseFont bfChineseHuawen = BaseFont.createFont("../../fonts/huawenkt.ttf", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
PdfPCell cell;
Image image;
//ConfigService configService = (ConfigService) ApplicationContextUtil.getBean("configService");
PdfWriter.getInstance(doc, out);
doc.open();
// 標題
font = new Font(bfChinese, 24, Font.BOLD);
PdfPTable table = new PdfPTable(64);
table.setWidthPercentage(95);
PdfPTable table2 = new PdfPTable(11);
cell = getPdfPCell(getTitleParagraph("浙江大學醫學院附屬第一醫院", font, Element.TITLE), Element.ALIGN_RIGHT, bfChinese, 10);
cell.setVerticalAlignment(Element.ALIGN_CENTER);
table2.addCell(cell);
table2.addCell(getPdfPCell("", Element.ALIGN_RIGHT, bfChinese, 1));
cell = getPdfPCell(getTitleParagraph("互聯網院區處方箋", font, Element.TITLE), Element.ALIGN_RIGHT, bfChinese, 9);
cell.setVerticalAlignment(Element.ALIGN_CENTER);
table2.addCell(cell);
table2.addCell(getPdfPCell("", Element.ALIGN_RIGHT, bfChinese, 2));
cell = new PdfPCell(table2);
cell.setColspan(54);
cell.setBorder(0);
table.addCell(cell);
//table2.addCell(getPdfPCell("", Element.TITLE, bfChinese, 3));
font = new Font(bfChinese, 18, Font.ITALIC);
cell = getPdfPCell("普 通 處 方", Element.ALIGN_LEFT, bfChineseHuawen, 10, font);
cell.setBorderColor(new BaseColor(120, 120, 120));
cell.setBorderWidthBottom(0.4f);
cell.setBorderWidthTop(0.4f);
cell.setBorderWidthLeft(0.4f);
cell.setBorderWidthRight(0.4f);
cell.setPaddingTop(-4f);
cell.setPaddingLeft(6f);
cell.setPaddingBottom(6f);
table.addCell(cell);
newlineTable(table, 24);
doc.add(table);
font = new Font(bfChinese, 11, Font.NORMAL);
font.setColor(0, 0, 0);
table = new PdfPTable(10);
table.setWidthPercentage(89.6f);
table.addCell(getPdfPCell("病歷號:", Element.ALIGN_LEFT, bfChinese, 5));
table.addCell(getPdfPCell("NO.H" + DateUtil.getyyyyMMdd(currentDate) + String.format("%03d", patient.optLong("id")), Element.ALIGN_RIGHT, bfChinese, 5));
doc.add(table);
//1、姓名、性別、年齡、費別
table = new PdfPTable(8);
table.setWidthPercentage(100);
table.addCell(getPdfPCell("姓名:", Element.ALIGN_RIGHT, bfChinese, 1));
table.addCell(getPdfPCell(StringUtils.isNotBlank(patient.optString("name")) ? patient.optString("name") : "", Element.ALIGN_LEFT, bfChinese, 1));
table.addCell(getPdfPCell("性別:", Element.ALIGN_RIGHT, bfChinese, 1));
table.addCell(getPdfPCell(StringUtils.isNotBlank(patient.optString("sex")) ? patient.optString("sex") : "", Element.ALIGN_LEFT, bfChinese, 1));
table.addCell(getPdfPCell("年 齡:", Element.ALIGN_RIGHT, bfChinese, 1));
table.addCell(getPdfPCell(StringUtils.isNotBlank(patient.optString("age")) ? patient.optString("age") : "", Element.ALIGN_LEFT, bfChinese, 1));
table.addCell(getPdfPCell("費別:", Element.ALIGN_RIGHT, bfChinese, 1));
table.addCell(getPdfPCell("自費", Element.ALIGN_LEFT, bfChinese, 1));
doc.add(table);
//2、就診卡號、科別
table = new PdfPTable(12);
table.setWidthPercentage(100);
table.addCell(getPdfPCell("就診卡號:", Element.ALIGN_RIGHT, bfChinese, 2));
table.addCell(getPdfPCell(StringUtils.isNotBlank(patient.optString("treatment_card")) ? patient.optString("treatment_card") : "", Element.ALIGN_LEFT, bfChinese, 4));
table.addCell(getPdfPCell("科別(床號):" + ( StringUtils.isNotBlank(patient.optString("department")) ? patient.optString("department") : "" ), Element.ALIGN_RIGHT, bfChinese, 5));
table.addCell(getPdfPCell("", Element.ALIGN_RIGHT, bfChinese, 1));
doc.add(table);
//3、 地址、手機號
table = new PdfPTable(24);
table.setWidthPercentage(90);
table.addCell(getPdfPCell("地址:" + "", Element.ALIGN_LEFT, bfChinese, 14));
table.addCell(getPdfPCell("手機號:" + ( StringUtils.isNotBlank(patient.optString("phone")) ? patient.optString("phone") : "" ), Element.ALIGN_RIGHT, bfChinese, 9));
table.addCell(getPdfPCell("", Element.ALIGN_RIGHT, bfChinese, 1));
doc.add(table);
//4、 臨床(初步)診斷
table = new PdfPTable(40);
table.setWidthPercentage(90);
table.addCell(getPdfPCell("臨床(初步)診斷:", Element.ALIGN_RIGHT, bfChinese, 9));
table.addCell(getPdfPCell(StringUtils.isNotBlank(diagnosis.optString("before_diagnose")) ? diagnosis.optString("before_diagnose").replace("@@", "、") : "", Element.ALIGN_LEFT, bfChinese, 31));
doc.add(table);
//5、 過敏史
table = new PdfPTable(180);
table.setWidthPercentage(90);
table.addCell(getPdfPCell("過敏史:", Element.ALIGN_RIGHT, bfChinese, 19));
table.addCell(getPdfPCell(patient.optJSONObject("history") == null ? "" : patient.optJSONObject("history").optString("allergic_history"), Element.ALIGN_LEFT, bfChinese, 161));
doc.add(table);
//5、 處方日期
table = new PdfPTable(6);
table.setWidthPercentage(100);
table.addCell(getPdfPCell("處方日期:", Element.ALIGN_RIGHT, bfChinese, 1));
table.addCell(getPdfPCell(DateUtil.getyyyy_MM_dd(currentDate), Element.ALIGN_LEFT, bfChinese, 5));
doc.add(table);
//6、 Rp
font = new Font(bfChinese, 26, Font.BOLD);
font.setColor(0, 0, 0);
doc.add(getTitleParagraph(" Rp", font, Element.ALIGN_LEFT));
doc.add(new Paragraph("\n"));
//7、處方內容
table = new PdfPTable(12);
table.setWidthPercentage(80);
JSONArray drugList = diagnosis.optJSONArray("recipe_list") == null ? new JSONArray() : diagnosis.optJSONArray("recipe_list");
int nullCount = 0;
for (int i = 0; i < drugList.size(); i++) {
JSONObject drug = drugList.optJSONObject(i);
if(drug == null) {
nullCount++;
continue;
}
table.addCell(getPdfPCell(drug.optString("name"), Element.ALIGN_LEFT, bfChineseHuawen, 10, new Font(bfChineseHuawen, 14, Font.BOLD)));
table.addCell(getPdfPCell(drug.optString("sl") + drug.optString("sldw"), Element.ALIGN_LEFT, bfChineseHuawen, 2, new Font(bfChineseHuawen, 14, Font.BOLD)));
table.addCell(getPdfPCell("用法:", Element.ALIGN_RIGHT, bfChineseHuawen, 2));
StringBuilder sbUsingMethod = new StringBuilder();
if(StringUtils.isNotBlank(drug.optString("jl"))) {
sbUsingMethod.append("每次" + drug.optString("jl") + drug.optString("ypjldw"));
}
if(StringUtils.isNotBlank(drug.optString("day")) && StringUtils.isNotBlank(drug.optString("pc"))) {
sbUsingMethod.append(" " + drug.optString("pc") + " " + drug.optString("day") + "天");
}
if(StringUtils.isNotBlank(drug.optString("yf"))) {
sbUsingMethod.append(" " + drug.optString("yf"));
}
table.addCell(getPdfPCell(sbUsingMethod.toString(), Element.ALIGN_LEFT, bfChineseHuawen, 10));
}
doc.add(table);
//添加 18 - 2n行
for(int i = 0; i < 16 - 2 * (drugList.size() - nullCount); i ++) {
doc.add(new Paragraph("\n"));
}
//左側、簽名
table = new PdfPTable(20);
table.setWidthPercentage(88);
table2 = new PdfPTable(1);
newlineTable(table2, 1);
newlineTable(table2, 1);
newlineTable(table2, 1);
newlineTable(table2, 1);
newlineTable(table2, 1);
if(StringUtils.isNotBlank(diagnosis.optString("sum")) && !"0".equals(diagnosis.optString("sum"))) {
if(diagnosis.optString("sum").indexOf("元") > 0) {
table2.addCell(getPdfPCell("藥費:" + diagnosis.optString("sum"), Element.ALIGN_LEFT, bfChinese, 1));
} else {
table2.addCell(getPdfPCell("藥費:" + diagnosis.optString("sum") + "元", Element.ALIGN_LEFT, bfChinese, 1));
}
} else {
table2.addCell(getPdfPCell("藥費:", Element.ALIGN_LEFT, bfChinese, 1));
}
table2.addCell(getPdfPCell("注射費:" + "", Element.ALIGN_LEFT, bfChinese, 1));
table2.addCell(getPdfPCell("", Element.ALIGN_LEFT, bfChinese, 1));
cell = new PdfPCell(table2);
cell.setColspan(8);
cell.setBorder(0);
table.addCell(cell);
table2 = new PdfPTable(1);
newlineTable(table2, 1);
newlineTable(table2, 1);
newlineTable(table2, 1);
newlineTable(table2, 1);
newlineTable(table2, 1);
if(user == null || !StringUtils.isNotBlank(user.getUserName())){
table2.addCell(getPdfPCell("醫師:" + patient.optString("yy_doctor") + "(" + patient.optString("doctor_id") + ")", Element.ALIGN_LEFT, bfChinese, 1));
} else {
table2.addCell(getPdfPCell("醫師:" + user.getUserName() + "(" + user.getLoginName() + ")", Element.ALIGN_LEFT, bfChinese, 1));
}
if(StringUtils.isNotBlank(patient.optString("sh_doctor_name"))) {
table2.addCell(getPdfPCell("審核藥師:" + patient.optString("sh_doctor_name"), Element.ALIGN_LEFT, bfChinese, 1));
} else {
table2.addCell(getPdfPCell("審核藥師:", Element.ALIGN_LEFT, bfChinese, 1));
}
table2.addCell(getPdfPCell("調配藥師:" + "", Element.ALIGN_LEFT, bfChinese, 1));
cell = new PdfPCell(table2);
cell.setColspan(7);
cell.setBorder(0);
table.addCell(cell);
//右側、二維碼
table2 = new PdfPTable(1);
image = Image.getInstance(codePath);
int percent = getImagePercent(image.getHeight(), image.getWidth(), 120);
image.scalePercent(percent);
cell = getPdfPCellImage(image, 1, 0f);
cell.setHorizontalAlignment(Element.ALIGN_RIGHT);
table2.addCell(cell);
font = new Font(bfChinese, 11, Font.NORMAL);
cell = getPdfPCell("掃一掃 查看電子版", Element.ALIGN_CENTER, bfChinese, 1, font);
table2.addCell(cell);
cell = new PdfPCell(table2);
cell.setColspan(5);
cell.setBorder(0);
table.addCell(cell);
doc.add(table);
table = new PdfPTable(1);
table.setWidthPercentage(95);
table.addCell(getPdfPCell(getTitleParagraph("注:請勿遺失,處方當天有效。因特殊情況,該處方有效為 天(簽名: )", new Font(bfChinese, 12, Font.NORMAL), Element.TITLE), Element.ALIGN_CENTER, bfChinese, 1));
doc.add(table);
doc.close();
}
/**
* 獲取pdf表格的單元格
*
* @param content
* @param alignment
* @param baseFont
* @return
*/
public static PdfPCell getPdfPCell(String content, int alignment,BaseFont baseFont, int colspan) {
Font font = new Font(baseFont, 12, Font.NORMAL);
Paragraph paragraph = new Paragraph(content, font);
PdfPCell cell = new PdfPCell(paragraph);
cell.setLeading(0, 1.5f);
cell.setLeft(2);
cell.setHorizontalAlignment(alignment);
cell.setBorder(0);
if (colspan > 1) {
cell.setColspan(colspan);
}
return cell;
}
public static PdfPCell getPdfPCell(Paragraph paragraph, int alignment, BaseFont baseFont, int colspan) {
// font.setColor(80, 80, 80);
PdfPCell cell = new PdfPCell(paragraph);
cell.setLeading(0, 1.5f);
cell.setLeft(2);
cell.setHorizontalAlignment(alignment);
cell.setBorder(0);
if (colspan > 1) {
cell.setColspan(colspan);
}
return cell;
}
/**
* 設置單元格,并可以設置字體大小
*
* @Description
* @param content
* @param alignment
* @param baseFont
* @param colspan
* @param font
* @return
*/
public static PdfPCell getPdfPCell(String content, int alignment, BaseFont baseFont, int colspan, Font font) {
// font.setColor(80, 80, 80);
Paragraph paragraph = new Paragraph(content, font);
PdfPCell cell = new PdfPCell(paragraph);
cell.setLeading(0, 1.5f);
cell.setLeft(2);
cell.setHorizontalAlignment(alignment);
cell.setBorder(0);
if (colspan > 1) cell.setColspan(colspan);
return cell;
}
/**
* 獲取pdf表格的單元格,并可以設置上面距離
* @param content
* @param alignment
* @param baseFont
* @return
*/
public static PdfPCell getPdfPCell(String content, int alignment, BaseFont baseFont,int colspan, float paddingTop){
Font font = new Font(baseFont, 11, Font.NORMAL);
//font.setColor(80, 80, 80);
Paragraph paragraph = new Paragraph(content, font);
PdfPCell cell = new PdfPCell(paragraph);
cell.setLeading(0, 1.5f);
cell.setLeft(2);
cell.setUseBorderPadding(true);
cell.setPaddingTop(paddingTop);
cell.setHorizontalAlignment(alignment);
cell.setBorder(0);
if(colspan > 1) cell.setColspan(colspan);
return cell;
}
/**
* 獲取pdf表格的單元格
*
* @param content
* @param alignment
* @param baseFont
* @return
*/
public static PdfPCell getPdfPCell2(String content, int alignment,
BaseFont baseFont, int colspan) {
Font font = new Font(baseFont, 14, Font.NORMAL);
font.setColor(59, 142, 222);
Paragraph paragraph = new Paragraph(content, font);
PdfPCell cell = new PdfPCell(paragraph);
// cell.setLeading(0, 1.5f);
cell.setVerticalAlignment(Element.ALIGN_BOTTOM);
cell.setLeft(2);
cell.setHorizontalAlignment(alignment);
cell.setBorder(0);
if (colspan > 1)
cell.setColspan(colspan);
return cell;
}
/**
* 獲取pdf表格的圖片單元格
*
* @param image
* @param colspan
* @param paddingTop
* @return
*/
public static PdfPCell getPdfPCellImage(Image image, int colspan, float paddingTop) {
PdfPCell cell = new PdfPCell(image);
cell.setHorizontalAlignment(Element.ALIGN_LEFT);
cell.setUseBorderPadding(true);
cell.setPaddingTop(paddingTop);
cell.setBorder(0);
if (colspan > 1) cell.setColspan(colspan);
return cell;
}
/**
* 獲取pdf表格的圖片單元格
*
* @param content
* @param alignment
* @param baseFont
* @return
*/
public static PdfPCell getPdfPCellImage2(Image image, int colspan, int align) {
PdfPCell cell = new PdfPCell(image);
cell.setHorizontalAlignment(align);
cell.setVerticalAlignment(Element.ALIGN_BOTTOM);
cell.setBorder(0);
if (colspan > 1)
cell.setColspan(colspan);
return cell;
}
/**
* 標題文字
*
* @param title
* @param font
* @return
*/
public static Paragraph getTitleParagraph(String title, Font font, int element) {
Paragraph paragraph = new Paragraph(title, font);
paragraph.setAlignment(element);
return paragraph;
}
/**
* 畫線
*
* @return
*/
public static Chunk getLine() {
Chunk underline = new Chunk(
" ");
underline.setUnderline(new BaseColor(100, 100, 100), 0.1f, 0f, 1f, 0f,
0);
return underline;
}
/**
* 畫線
*
* @return
*/
public static Chunk getLine2() {
Chunk underline = new Chunk(
" ");
underline.setUnderline(new BaseColor(100, 100, 100), 0.1f, 0f, 10f, 0f,
0);
return underline;
}
/**
* 畫線
*
* @return
*/
public static Chunk getLine2(BaseColor baseColor) {
Chunk underline = new Chunk(
" ");
underline.setUnderline(baseColor, 0.1f, 0f, 10f, 0f,
0);
return underline;
}
/**
* pdfptable 換行
*
* @param table
*/
public static void newlineTable(PdfPTable table) {
PdfPCell cell = new PdfPCell(new Paragraph(" "));
cell.setBorder(0);
cell.setLeading(-1, 0);
table.addCell(cell);
table.addCell(cell);
table.addCell(cell);
table.addCell(cell);
table.addCell(cell);
table.addCell(cell);
return;
}
/**
* pdfptable 換行
*
* @param table
*/
public static void newlineTable(PdfPTable table, int lineCount) {
PdfPCell cell = new PdfPCell(new Paragraph(" "));
cell.setBorder(0);
cell.setLeading(-1, 0);
for (int i = 0; i < lineCount; i++) {
table.addCell(cell);
}
return;
}
/**
* 第一種解決方案 在不改變圖片形狀的同時,判斷,如果h>w,則按h壓縮,否則在w>h或w=h的情況下,按寬度壓縮
*
* @param h
* @param w
* @return
*/
public static int getImagePercent(float h, float w, int standard) {
int p = 0;
float p2 = 100.0f;
if (h >= w && h > standard) {
p2 = standard / h * 100;
}
if (h < w && w > standard) {
p2 = standard / w * 100;
}
p = Math.round(p2);
return p;
}
}
```
- 前端入門
- 前端入職須知
- 入職準備
- 前端ide
- vsc快速上手指南
- 上手指南一
- 常用插件推薦
- 微信開發者
- sublime的使用
- hbuilder入門
- ws
- 前端面試
- 概要
- bat面試題庫
- 題庫一
- 面試大綱
- 題庫二
- 面試大綱
- 前端基礎面試題
- js基礎面試題
- vue&&react面試題
- 數據結構&&算法面試題
- 題庫三
- 001
- 題庫四
- 中小公司leader
- 常規題庫
- 前端規范
- 001
- css
- 001
- 002
- es6(js)
- 001
- 002
- 003
- 004
- node
- 001
- vue
- 001
- react
- 001
- 預處理器
- 001
- gulp
- 001
- webpack
- 001
- 設計模式
- 001
- web常識
- 001
- koa
- 001
- 小程序
- 001
- 數據結構與算法
- 001
- 推薦文章
- 面試指南
- web性能
- 面試分享
- 001
- ps
- ps入門階段
- 圖片類型以及區別
- 基本概念以及常用工具
- ps操作技巧
- 幾個問題
- ps互動教程軟件(app)
- 資源導航
- ps站點資源導航
- ui站點導航
- html
- h5專題
- audio/video
- Geolocation
- Websockets
- Web storage
- Communication
- Web Workers
- requestAnimationFrame
- async&&defer
- fileApi
- h5調用底層能力
- input新解
- canvas實戰篇
- 教程
- js
- javascript入門
- js代碼審查工具
- js性能優化
- 瀏覽器dom對象
- js優質資源
- indexDB入門
- jquery
- jq基本語法
- jq插件與原生插件
- Jq使用建議
- ajax后退解決方案
- jq常見問題
- js常用技術
- js控制運動-move.js
- 常用正則歸納
- js實用技術
- 鼠標行為分析
- document.referrer
- 你可能不知道的調試技巧
- 表格文件的讀取與下載
- 異步編程那些事
- 數據結構
- 編程環境和模型
- 列表
- 棧
- 隊列
- 鏈表
- 字典
- 散列
- 集合
- 二叉樹和二叉查找樹
- 參考
- js編程
- js模塊機制
- 算法
- 基本算法
- 遞歸
- 圖和圖算法
- 圖定義
- 系統建模
- 圖類
- 搜索圖
- 查找最短路徑
- 拓撲排序
- 圖實踐
- 排序算法
- 測試平臺
- 冒泡排序
- 選擇排序
- 插入排序
- 基本排序的比較
- 希爾排序
- 歸并排序
- 快速排序
- 實踐
- 二分排序
- 檢索算法
- 順序查找
- 二分查找
- 查找文本數據
- 檢索實踐
- 高級算法
- 動態規劃
- 貪心算法
- 高級算法實踐
- 代碼重構
- 簡化函數參數
- 001
- 002
- 基礎鞏固
- 001
- es2015實戰
- 初識es-module
- 異步編程
- es6工廠函數
- filter|map|reduce
- js實戰篇
- 前端圖像處理
- touch事件知多少
- 手勢與實踐
- print表格分頁
- 精彩文章推薦
- 001
- 插件庫
- 插件大全
- 功能性插件
- pdfjs
- wdatepicker
- qrcoder
- barcode插件
- photoviewer
- hammer.js
- echarts
- 視頻控件
- 發送瀏覽器通知
- 觸屏簽名插件
- 圖片相關插件推薦
- 待分類插件(pc)
- 待分類插件(手機端)
- 交互組件
- layerjs
- web
- web兼容
- pc端兼容bug匯總
- ie兼容bug匯總
- ie8測試專題
- web常用技術點
- web兼容匯總001
- ie6專題
- css兼容
- web安全
- web安全初級
- app/h5組件
- app教程
- 前端教程
- rubikx的教程
- 與app交互邏輯
- h5喚起app通識
- webview專題
- webview總綱
- js與oc交互協議
- js與安卓交互協議
- 兼容問題匯總
- jsBridge專題
- errorBook.js
- 常用工具
- chrome-devtool使用
- chraels
- 開發注意事項
- web常識
- markdown教程
- 自定義風格思路
- 經驗與問題總結
- 總結1
- 前端應該注意哪些seo
- 懶加載和預加載
- https
- 前端重構
- web優化
- 移動端web優化
- http緩存
- web端優化
- 圖片專題
- svg專題
- 深入淺出svg
- 地圖使用
- 注意事項
- 需求提交
- 常規交互需求提交
- 緩存
- 干貨文章
- 瀏覽器緩存
- 內存
- web性能指南
- 讀書筆記
- ui框架
- 概論
- easyui
- bootstrap
- 入門推薦
- modal插件使用
- 按鈕組件
- 正確使用柵格布局
- 下拉框插件使用
- 表單使用與驗證
- tab切換項插件
- 分頁控件
- 進度條控件
- 文件上傳控件
- 面板控件
- 常見特效與插件
- weui
- sui-pc
- sui-mobile
- layerUI
- frozen-UI
- rubik-u那些事
- 基本內容
- 小程序
- 小程序入門
- 入門
- 實踐踩坑
- 001
- 基本語法
- 開發大綱
- 注意事項
- 微信專題
- 基本入門
- 準備工作
- 定制菜單
- 圖文消息與圖文推送
- h5支付
- 公眾號支付
- node完成微信支付
- 進階使用
- 微信分享
- weui使用
- 基本使用
- 支付寶專題
- 支付寶h5支付
- app支付接入
- 服務窗支付
- java
- java入門
- eclipse基本使用
- 語言特點
- java代碼規范
- 編譯調試
- java基本語句
- springMVC
- javaweb
- vm模板引擎
- freemarker
- 常用常識
- 常用常識2
- 部署項目
- web --xml文件解析
- java生成pdf文件
- java讀取、寫文件案例
- 圖片加水印
- 圖片加水印2
- java-cookie
- 驗證碼文件
- sql-mapper語法
- maven教程
- mySql教程
- jeecms
- flash
- flash入門
- flash準備工作
- 運行與編譯
- 瀏覽器中flash設置教程
- flash檢測