AttachmentLabel.html 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357
  1. <!DOCTYPE HTML>
  2. <html lang="zh-hans" >
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  6. <title>AttachmentLabel附件标签 · 梦想家内容管理系统(Dreamer CMS)</title>
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  8. <meta name="description" content="">
  9. <meta name="generator" content="GitBook 3.2.3">
  10. <meta name="author" content="王俊南">
  11. <link rel="stylesheet" href="../gitbook/style.css">
  12. <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
  13. <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
  14. <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
  15. <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
  16. <meta name="HandheldFriendly" content="true"/>
  17. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  18. <meta name="apple-mobile-web-app-capable" content="yes">
  19. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  20. <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
  21. <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
  22. <link rel="next" href="SqlLabel.html" />
  23. <link rel="prev" href="TreeLabel.html" />
  24. <link rel="shortcut icon" href="./source/images/favicon.ico" type="image/x-icon">
  25. <link rel="apple-touch-icon-precomposed" sizes="152x152" href="./source/images/favicon.png">
  26. </head>
  27. <body>
  28. <div class="book">
  29. <div class="book-summary">
  30. <div id="book-search-input" role="search">
  31. <input type="text" placeholder="输入并搜索" />
  32. </div>
  33. <nav role="navigation">
  34. <ul class="summary">
  35. <li>
  36. <a href="http://www.iteachyou.cc" target="_blank" class="custom-link">I Teach You,我教你!</a>
  37. </li>
  38. <li>
  39. <a href="https://gitee.com/iteachyou/dreamer_cms" target="_blank" class="custom-link">Dreamer CMS(Gitee)</a>
  40. </li>
  41. <li>
  42. <a href="https://github.com/iteachyou-wjn/dreamer_cms" target="_blank" class="custom-link">Dreamer CMS(Github)</a>
  43. </li>
  44. <li class="divider"></li>
  45. <li class="chapter " data-level="1.1" data-path="../">
  46. <a href="../">
  47. 封面
  48. </a>
  49. </li>
  50. <li class="chapter " data-level="1.2" data-path="../COPYRIGHT.html">
  51. <a href="../COPYRIGHT.html">
  52. 版权
  53. </a>
  54. </li>
  55. <li class="divider"></li>
  56. <li class="chapter " data-level="2.1" >
  57. <span>
  58. 前言
  59. </span>
  60. <ul class="articles">
  61. <li class="chapter " data-level="2.1.1" data-path="../preface/">
  62. <a href="../preface/">
  63. 简介
  64. </a>
  65. </li>
  66. <li class="chapter " data-level="2.1.2" data-path="../preface/Topic.html">
  67. <a href="../preface/Topic.html">
  68. 主题
  69. </a>
  70. </li>
  71. <li class="chapter " data-level="2.1.3" data-path="../preface/Publish.html">
  72. <a href="../preface/Publish.html">
  73. 发行方法
  74. </a>
  75. </li>
  76. <li class="chapter " data-level="2.1.4" data-path="../preface/Online.html">
  77. <a href="../preface/Online.html">
  78. 在线手册
  79. </a>
  80. </li>
  81. <li class="chapter " data-level="2.1.5" data-path="../preface/Last.html">
  82. <a href="../preface/Last.html">
  83. 最后
  84. </a>
  85. </li>
  86. </ul>
  87. </li>
  88. <li class="divider"></li>
  89. <li class="chapter " data-level="3.1" data-path="../chapter01/">
  90. <a href="../chapter01/">
  91. 第一章 模板设计师要求
  92. </a>
  93. <ul class="articles">
  94. <li class="chapter " data-level="3.1.1" data-path="../chapter01/Designer.html">
  95. <a href="../chapter01/Designer.html">
  96. 设计师
  97. </a>
  98. </li>
  99. <li class="chapter " data-level="3.1.2" data-path="../chapter01/Developer.html">
  100. <a href="../chapter01/Developer.html">
  101. 开发者
  102. </a>
  103. </li>
  104. </ul>
  105. </li>
  106. <li class="divider"></li>
  107. <li class="chapter " data-level="4.1" data-path="../chapter02/">
  108. <a href="../chapter02/">
  109. 第二章 模板制作流程
  110. </a>
  111. </li>
  112. <li class="divider"></li>
  113. <li class="chapter " data-level="5.1" >
  114. <span>
  115. 第三章 模板文件及目录结构
  116. </span>
  117. <ul class="articles">
  118. <li class="chapter " data-level="5.1.1" data-path="../chapter03/">
  119. <a href="../chapter03/">
  120. 模版目录
  121. </a>
  122. </li>
  123. <li class="chapter " data-level="5.1.2" data-path="../chapter03/Description.html">
  124. <a href="../chapter03/Description.html">
  125. 模板文件与功能说明
  126. </a>
  127. </li>
  128. <li class="chapter " data-level="5.1.3" data-path="../chapter03/DesignAndUse.html">
  129. <a href="../chapter03/DesignAndUse.html">
  130. 概念,设计和使用模板
  131. </a>
  132. </li>
  133. <li class="chapter " data-level="5.1.4" data-path="../chapter03/NamingRules.html">
  134. <a href="../chapter03/NamingRules.html">
  135. 命名规则
  136. </a>
  137. </li>
  138. <li class="chapter " data-level="5.1.5" data-path="../chapter03/Other.html">
  139. <a href="../chapter03/Other.html">
  140. 其它模板说明
  141. </a>
  142. </li>
  143. </ul>
  144. </li>
  145. <li class="divider"></li>
  146. <li class="chapter " data-level="6.1" data-path="../chapter04/">
  147. <a href="../chapter04/">
  148. 第四章 模板引擎介绍
  149. </a>
  150. <ul class="articles">
  151. <li class="chapter " data-level="6.1.1" data-path="../chapter04/CoreDoc.html">
  152. <a href="../chapter04/CoreDoc.html">
  153. 核心文件
  154. </a>
  155. </li>
  156. <li class="chapter " data-level="6.1.2" data-path="../chapter04/Grammar.html">
  157. <a href="../chapter04/Grammar.html">
  158. 模板语法
  159. </a>
  160. </li>
  161. <li class="chapter " data-level="6.1.3" data-path="../chapter04/LabelCategory.html">
  162. <a href="../chapter04/LabelCategory.html">
  163. 标签分类
  164. </a>
  165. </li>
  166. </ul>
  167. </li>
  168. <li class="divider"></li>
  169. <li class="chapter " data-level="7.1" >
  170. <span>
  171. 第五章 标签参考
  172. </span>
  173. <ul class="articles">
  174. <li class="chapter " data-level="7.1.1" >
  175. <span>
  176. ▶全局标签
  177. </span>
  178. </li>
  179. <li class="chapter " data-level="7.1.2" data-path="GlobalLabel.html">
  180. <a href="GlobalLabel.html">
  181. Global全局配置标签
  182. </a>
  183. </li>
  184. <li class="chapter " data-level="7.1.3" data-path="VariableLabel.html">
  185. <a href="VariableLabel.html">
  186. Variable全局变量标签
  187. </a>
  188. </li>
  189. <li class="chapter " data-level="7.1.4" data-path="TemplateLabel.html">
  190. <a href="TemplateLabel.html">
  191. Template模版路径标签
  192. </a>
  193. </li>
  194. <li class="chapter " data-level="7.1.5" data-path="IncludeLabel.html">
  195. <a href="IncludeLabel.html">
  196. Include引入文件标签
  197. </a>
  198. </li>
  199. <li class="chapter " data-level="7.1.6" data-path="TypeLabel.html">
  200. <a href="TypeLabel.html">
  201. Type栏目调用标签
  202. </a>
  203. </li>
  204. <li class="chapter " data-level="7.1.7" data-path="ChannelLabel.html">
  205. <a href="ChannelLabel.html">
  206. Channel频道列表标签
  207. </a>
  208. </li>
  209. <li class="chapter " data-level="7.1.8" data-path="ListLabel.html">
  210. <a href="ListLabel.html">
  211. List文章列表标签
  212. </a>
  213. </li>
  214. <li class="chapter " data-level="7.1.9" data-path="CategoryArtListLabel.html">
  215. <a href="CategoryArtListLabel.html">
  216. CategoryArtListLabel栏目内容列表标签
  217. </a>
  218. </li>
  219. <li class="chapter " data-level="7.1.10" data-path="TagLabel.html">
  220. <a href="TagLabel.html">
  221. TagLabel标签列表标签
  222. </a>
  223. </li>
  224. <li class="chapter " data-level="7.1.11" data-path="TreeLabel.html">
  225. <a href="TreeLabel.html">
  226. TreeLabel栏目树标签
  227. </a>
  228. </li>
  229. <li class="chapter active" data-level="7.1.12" data-path="AttachmentLabel.html">
  230. <a href="AttachmentLabel.html">
  231. AttachmentLabel附件标签
  232. </a>
  233. </li>
  234. <li class="chapter " data-level="7.1.13" data-path="SqlLabel.html">
  235. <a href="SqlLabel.html">
  236. SqlLabel SQL标签
  237. </a>
  238. </li>
  239. <li class="chapter " data-level="7.1.14" data-path="IfLabel.html">
  240. <a href="IfLabel.html">
  241. IfLabel判断标签
  242. </a>
  243. </li>
  244. <li class="chapter " data-level="7.1.15" >
  245. <span>
  246. ▶分页标签
  247. </span>
  248. </li>
  249. <li class="chapter " data-level="7.1.16" data-path="CategoryLabel.html">
  250. <a href="CategoryLabel.html">
  251. Category分页栏目标签
  252. </a>
  253. </li>
  254. <li class="chapter " data-level="7.1.17" data-path="TopCategoryLabel.html">
  255. <a href="TopCategoryLabel.html">
  256. TopCategory分页顶级栏目标签
  257. </a>
  258. </li>
  259. <li class="chapter " data-level="7.1.18" data-path="LocationLabel.html">
  260. <a href="LocationLabel.html">
  261. Location当前位置标签
  262. </a>
  263. </li>
  264. <li class="chapter " data-level="7.1.19" >
  265. <span>
  266. ▶列表标签
  267. </span>
  268. </li>
  269. <li class="chapter " data-level="7.1.20" data-path="PageListLabel.html">
  270. <a href="PageListLabel.html">
  271. PageList文章分页标签
  272. </a>
  273. </li>
  274. <li class="chapter " data-level="7.1.21" data-path="PaginationLabel.html">
  275. <a href="PaginationLabel.html">
  276. Pagination显示分页标签
  277. </a>
  278. </li>
  279. <li class="chapter " data-level="7.1.22" >
  280. <span>
  281. ▶内容标签
  282. </span>
  283. </li>
  284. <li class="chapter " data-level="7.1.23" data-path="ArticleLabel.html">
  285. <a href="ArticleLabel.html">
  286. Article文章页标签
  287. </a>
  288. </li>
  289. <li class="chapter " data-level="7.1.24" data-path="PrevNextLabel.html">
  290. <a href="PrevNextLabel.html">
  291. PrevNext上一篇、下一篇标签
  292. </a>
  293. </li>
  294. </ul>
  295. </li>
  296. <li class="chapter " data-level="7.2" data-path="../chapter06/DataBase.html">
  297. <a href="../chapter06/DataBase.html">
  298. 第六章 数据库
  299. </a>
  300. </li>
  301. <li class="chapter " data-level="7.3" >
  302. <span>
  303. 第七章 模板扩展
  304. </span>
  305. <ul class="articles">
  306. <li class="chapter " data-level="7.3.1" data-path="../chapter07/Message.html">
  307. <a href="../chapter07/Message.html">
  308. 留言投稿
  309. </a>
  310. </li>
  311. <li class="chapter " data-level="7.3.2" data-path="../chapter07/Search.html">
  312. <a href="../chapter07/Search.html">
  313. 网站搜索
  314. </a>
  315. </li>
  316. <li class="chapter " data-level="7.3.3" data-path="../chapter07/DefineLabel.html">
  317. <a href="../chapter07/DefineLabel.html">
  318. 定义标签
  319. </a>
  320. </li>
  321. <li class="chapter " data-level="7.3.4" data-path="../chapter07/Regexp.html">
  322. <a href="../chapter07/Regexp.html">
  323. 正则工具类
  324. </a>
  325. </li>
  326. </ul>
  327. </li>
  328. <li class="chapter " data-level="7.4" >
  329. <span>
  330. 第八章 部署上线
  331. </span>
  332. <ul class="articles">
  333. <li class="chapter " data-level="7.4.1" data-path="../chapter08/Environment.html">
  334. <a href="../chapter08/Environment.html">
  335. 环境准备
  336. </a>
  337. </li>
  338. <li class="chapter " data-level="7.4.2" data-path="../chapter08/Packaging.html">
  339. <a href="../chapter08/Packaging.html">
  340. 应用打包
  341. </a>
  342. </li>
  343. <li class="chapter " data-level="7.4.3" data-path="../chapter08/Online.html">
  344. <a href="../chapter08/Online.html">
  345. 项目上线
  346. </a>
  347. </li>
  348. </ul>
  349. </li>
  350. <li class="chapter " data-level="7.5" >
  351. <span>
  352. 第九章 常见问题
  353. </span>
  354. <ul class="articles">
  355. <li class="chapter " data-level="7.5.1" data-path="../chapter09/Business.html">
  356. <a href="../chapter09/Business.html">
  357. 商业授权
  358. </a>
  359. </li>
  360. <li class="chapter " data-level="7.5.2" data-path="../chapter09/ResourceDir.html">
  361. <a href="../chapter09/ResourceDir.html">
  362. 资源目录
  363. </a>
  364. </li>
  365. <li class="chapter " data-level="7.5.3" data-path="../chapter09/RichTextEditor.html">
  366. <a href="../chapter09/RichTextEditor.html">
  367. 富文本编辑器
  368. </a>
  369. </li>
  370. <li class="chapter " data-level="7.5.4" data-path="../chapter09/NavActive.html">
  371. <a href="../chapter09/NavActive.html">
  372. 导航Active
  373. </a>
  374. </li>
  375. <li class="chapter " data-level="7.5.5" data-path="../chapter09/CategoryPage.html">
  376. <a href="../chapter09/CategoryPage.html">
  377. 栏目分页
  378. </a>
  379. </li>
  380. <li class="chapter " data-level="7.5.6" data-path="../chapter09/CategoryFilter.html">
  381. <a href="../chapter09/CategoryFilter.html">
  382. 多级栏目筛选
  383. </a>
  384. </li>
  385. <li class="chapter " data-level="7.5.7" data-path="../chapter09/MutipleLanguage.html">
  386. <a href="../chapter09/MutipleLanguage.html">
  387. 多语言网站
  388. </a>
  389. </li>
  390. <li class="chapter " data-level="7.5.8" data-path="../chapter09/UploadContrl.html">
  391. <a href="../chapter09/UploadContrl.html">
  392. 上传大小控制
  393. </a>
  394. </li>
  395. <li class="chapter " data-level="7.5.9" data-path="../chapter09/ResourceNotFound.html">
  396. <a href="../chapter09/ResourceNotFound.html">
  397. 上线图片404
  398. </a>
  399. </li>
  400. <li class="chapter " data-level="7.5.10" data-path="../chapter09/Favicon.html">
  401. <a href="../chapter09/Favicon.html">
  402. 站点Favicon
  403. </a>
  404. </li>
  405. </ul>
  406. </li>
  407. <li class="chapter " data-level="7.6" >
  408. <span>
  409. 第十章 关于捐赠
  410. </span>
  411. <ul class="articles">
  412. <li class="chapter " data-level="7.6.1" data-path="../chapter10/DonationList.html">
  413. <a href="../chapter10/DonationList.html">
  414. 授权和捐赠
  415. </a>
  416. </li>
  417. </ul>
  418. </li>
  419. <li class="divider"></li>
  420. <li>
  421. <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
  422. 本书使用 GitBook 发布
  423. </a>
  424. </li>
  425. </ul>
  426. </nav>
  427. </div>
  428. <div class="book-body">
  429. <div class="body-inner">
  430. <div class="book-header" role="navigation">
  431. <!-- Title -->
  432. <h1>
  433. <i class="fa fa-circle-o-notch fa-spin"></i>
  434. <a href=".." >AttachmentLabel附件标签</a>
  435. </h1>
  436. </div>
  437. <div class="page-wrapper" tabindex="-1" role="main">
  438. <div class="page-inner">
  439. <div id="book-search-results">
  440. <div class="search-noresults">
  441. <section class="normal markdown-section">
  442. <div style="display: flex;">
  443. <img src="https://oss.iteachyou.cc/logo.png" height="30">
  444. <div style="margin-left: 5px; font-size: 30px; line-height: 30px; font-weight: bold;">&#x68A6;&#x60F3;&#x5BB6;&#x5185;&#x5BB9;&#x7BA1;&#x7406;&#x7CFB;&#x7EDF;</div>
  445. </div>
  446. <hr>
  447. <h3 id="attachment&#x9644;&#x4EF6;&#x6807;&#x7B7E;"><a name="attachment&#x9644;&#x4EF6;&#x6807;&#x7B7E;" class="plugin-anchor" href="#attachment&#x9644;&#x4EF6;&#x6807;&#x7B7E;"><i class="fa fa-link" aria-hidden="true"></i></a>Attachment&#x9644;&#x4EF6;&#x6807;&#x7B7E;</h3>
  448. <h4 id="&#x9002;&#x7528;&#x7248;&#x672C;"><a name="&#x9002;&#x7528;&#x7248;&#x672C;" class="plugin-anchor" href="#&#x9002;&#x7528;&#x7248;&#x672C;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9002;&#x7528;&#x7248;&#x672C;</h4>
  449. <p>
  450. Previous_Releases_2.0.0 +
  451. </p>
  452. <h4 id="&#x540D;&#x79F0;"><a name="&#x540D;&#x79F0;" class="plugin-anchor" href="#&#x540D;&#x79F0;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x540D;&#x79F0;</h4>
  453. <p>
  454. &#x9644;&#x4EF6;&#x6807;&#x7B7E;
  455. </p>
  456. <h4 id="&#x529F;&#x80FD;"><a name="&#x529F;&#x80FD;" class="plugin-anchor" href="#&#x529F;&#x80FD;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x529F;&#x80FD;</h4>
  457. <p>
  458. &#x7528;&#x4E8E;&#x5728;&#x9875;&#x9762;&#x4E2D;&#x5C55;&#x793A;&#x6307;&#x5B9A;&#x7684;&#x9644;&#x4EF6;&#xFF0C;&#x53EF;&#x7528;&#x4E8E;&#x4E0B;&#x8F7D;&#x529F;&#x80FD;&#x3002;
  459. </p>
  460. <h4 id="&#x8BED;&#x6CD5;"><a name="&#x8BED;&#x6CD5;" class="plugin-anchor" href="#&#x8BED;&#x6CD5;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8BED;&#x6CD5;</h4>
  461. <pre><code class="lang-html?linenums">{dreamer-cms:attachment key=&quot;ez159g51&quot;}
  462. &lt;a href=&quot;[field:dlurl /]&quot; target=&quot;_blank&quot; class=&quot;btn btn-primary main-btn bg-main&quot;&gt;&#x4E00;&#x952E;&#x8FD0;&#x884C;&#x7248;&#x4E0B;&#x8F7D;&lt;/a&gt;
  463. {/dreamer-cms:attachment}
  464. </code></pre>
  465. <h4 id="&#x51FD;&#x6570;&#x4ECB;&#x7ECD;"><a name="&#x51FD;&#x6570;&#x4ECB;&#x7ECD;" class="plugin-anchor" href="#&#x51FD;&#x6570;&#x4ECB;&#x7ECD;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x51FD;&#x6570;&#x4ECB;&#x7ECD;</h4>
  466. <pre><code class="lang-html?linenums">&#x4F7F;&#x7528;&#x793A;&#x4F8B;&#xFF1A;
  467. [field:filename function=&quot;substring(0,50,&apos;...&apos;)&quot; /]
  468. &#x6216;
  469. [field:createtime function=&quot;format(&apos;yyyy-MM-dd&apos;)&quot; /]
  470. 1. function=&quot;substring(&#x53C2;&#x6570;1,&#x53C2;&#x6570;2,&#x53C2;&#x6570;3)&quot;
  471. &#x51FD;&#x6570;&#x8BF4;&#x660E;&#xFF1A;&#x622A;&#x53D6;&#x5B57;&#x6BB5;&#x4E3A;&#x6307;&#x5B9A;&#x957F;&#x5EA6;&#xFF0C;function=&quot;&quot;&#xFF0C;&#x5FC5;&#x987B;&#x4E3A;&#x53CC;&#x5F15;&#x53F7;&#x5305;&#x88F9;&#x3002;
  472. &#x53C2;&#x6570;1&#xFF1A;&#x5F00;&#x59CB;&#x622A;&#x53D6;&#x7684;&#x4F4D;&#x7F6E;
  473. &#x53C2;&#x6570;2&#xFF1A;&#x622A;&#x53D6;&#x957F;&#x5EA6;
  474. &#x53C2;&#x6570;3&#xFF1A;&#x66FF;&#x6362;&#x5B57;&#x7B26;&#xFF0C;&#x5982;...&#x3002;&#x6CE8;&#xFF1A;&#x53C2;&#x6570;3&#x9700;&#x8981;&#x7528;&#x82F1;&#x6587;&#x5355;&#x5F15;&#x53F7;&#x5305;&#x88F9;&#xFF0C;&#x4F8B;&#xFF1A;&apos;...&apos;
  475. 2. function=&quot;format(&#x53C2;&#x6570;)&quot;
  476. &#x51FD;&#x6570;&#x8BF4;&#x660E;&#xFF1A;&#x683C;&#x5F0F;&#x5316;&#x65E5;&#x671F;&#x6570;&#x636E;&#x4E3A;&#x6307;&#x5B9A;&#x683C;&#x5F0F;
  477. &#x53C2;&#x6570;&#xFF1A;&#x683C;&#x5F0F;&#x5316;&#x5B57;&#x7B26;&#x4E32;&#xFF0C;&#x53C2;&#x7167;SimpleDateFormat&#x7C7B;&#xFF0C;&#x6CE8;&#xFF1A;&#x53C2;&#x6570;&#x9700;&#x8981;&#x7528;&#x82F1;&#x6587;&#x5355;&#x5F15;&#x53F7;&#x5305;&#x88F9;&#xFF0C;&#x4F8B;&#xFF1A;&apos;yyyy-MM-dd&apos;
  478. </code></pre>
  479. <h4 id="&#x6587;&#x4EF6;"><a name="&#x6587;&#x4EF6;" class="plugin-anchor" href="#&#x6587;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6587;&#x4EF6;</h4>
  480. <pre><code class="lang-java?linenums">cc.iteachyou.cms.taglib.tags.AttachmentTag
  481. </code></pre>
  482. <h4 id="&#x53C2;&#x6570;"><a name="&#x53C2;&#x6570;" class="plugin-anchor" href="#&#x53C2;&#x6570;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x53C2;&#x6570;</h4>
  483. <table>
  484. <thead>
  485. <tr>
  486. <th style="text-align:center">&#x53C2;&#x6570;&#x540D;</th>
  487. <th style="text-align:left">&#x63CF;&#x8FF0;</th>
  488. </tr>
  489. </thead>
  490. <tbody>
  491. <tr>
  492. <td style="text-align:center">key</td>
  493. <td style="text-align:left">&#x540E;&#x53F0;&#x9644;&#x4EF6;&#x7BA1;&#x7406;&#x4E2D;&#x7684;&#x7F16;&#x7801;&#xFF0C;&#x901A;&#x8FC7;&#x552F;&#x4E00;&#x7F16;&#x7801;&#xFF0C;&#x83B7;&#x53D6;&#x6307;&#x5B9A;&#x9644;&#x4EF6;</td>
  494. </tr>
  495. </tbody>
  496. </table>
  497. <h4 id="&#x5E95;&#x5C42;&#x5B57;&#x6BB5;"><a name="&#x5E95;&#x5C42;&#x5B57;&#x6BB5;" class="plugin-anchor" href="#&#x5E95;&#x5C42;&#x5B57;&#x6BB5;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5E95;&#x5C42;&#x5B57;&#x6BB5;</h4>
  498. <table>
  499. <thead>
  500. <tr>
  501. <th style="text-align:center">&#x5B57;&#x6BB5;&#x540D;</th>
  502. <th style="text-align:left">&#x63CF;&#x8FF0;</th>
  503. </tr>
  504. </thead>
  505. <tbody>
  506. <tr>
  507. <td style="text-align:center">id</td>
  508. <td style="text-align:left">&#x9644;&#x4EF6;ID</td>
  509. </tr>
  510. <tr>
  511. <td style="text-align:center">filename</td>
  512. <td style="text-align:left">&#x9644;&#x4EF6;&#x540D;&#x79F0;</td>
  513. </tr>
  514. <tr>
  515. <td style="text-align:center">filetype</td>
  516. <td style="text-align:left">&#x9644;&#x4EF6;&#x7C7B;&#x578B;&#xFF08;&#x4E3A;MultipartFile&#x7C7B;&#x7684;ContentType&#xFF09;</td>
  517. </tr>
  518. <tr>
  519. <td style="text-align:center">filesize</td>
  520. <td style="text-align:left">&#x9644;&#x4EF6;&#x5927;&#x5C0F;</td>
  521. </tr>
  522. <tr>
  523. <td style="text-align:center">dlurl</td>
  524. <td style="text-align:left">&#x4E0B;&#x8F7D;&#x8FDE;&#x63A5;</td>
  525. </tr>
  526. <tr>
  527. <td style="text-align:center">createby</td>
  528. <td style="text-align:left">&#x521B;&#x5EFA;&#x4EBA;</td>
  529. </tr>
  530. <tr>
  531. <td style="text-align:center">createtime</td>
  532. <td style="text-align:left">&#x521B;&#x5EFA;&#x65F6;&#x95F4;</td>
  533. </tr>
  534. </tbody>
  535. </table>
  536. <h4 id="&#x8303;&#x4F8B;"><a name="&#x8303;&#x4F8B;" class="plugin-anchor" href="#&#x8303;&#x4F8B;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8303;&#x4F8B;</h4>
  537. <pre><code class="lang-html?linenums">{dreamer-cms:attachment key=&quot;ez159g51&quot;}
  538. &lt;a href=&quot;[field:dlurl /]&quot; target=&quot;_blank&quot; class=&quot;btn btn-primary main-btn bg-main&quot;&gt;&#x4E00;&#x952E;&#x8FD0;&#x884C;&#x7248;&#x4E0B;&#x8F7D;&lt;/a&gt;
  539. {/dreamer-cms:attachment}
  540. </code></pre>
  541. <h4 id="&#x6548;&#x679C;"><a name="&#x6548;&#x679C;" class="plugin-anchor" href="#&#x6548;&#x679C;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6548;&#x679C;</h4>
  542. <p><img src="https://oss.iteachyou.cc/20191225142748.png" alt="attachment&#x6807;&#x7B7E;" title="attachment&#x6807;&#x7B7E;"></p>
  543. </section>
  544. </div>
  545. <div class="search-results">
  546. <div class="has-results">
  547. <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
  548. <ul class="search-results-list"></ul>
  549. </div>
  550. <div class="no-results">
  551. <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
  552. </div>
  553. </div>
  554. </div>
  555. </div>
  556. </div>
  557. </div>
  558. <a href="TreeLabel.html" class="navigation navigation-prev " aria-label="Previous page: TreeLabel栏目树标签">
  559. <i class="fa fa-angle-left"></i>
  560. </a>
  561. <a href="SqlLabel.html" class="navigation navigation-next " aria-label="Next page: SqlLabel SQL标签">
  562. <i class="fa fa-angle-right"></i>
  563. </a>
  564. </div>
  565. <script>
  566. var gitbook = gitbook || [];
  567. gitbook.push(function() {
  568. gitbook.page.hasChanged({"page":{"title":"AttachmentLabel附件标签","level":"7.1.12","depth":2,"next":{"title":"SqlLabel SQL标签","level":"7.1.13","depth":2,"path":"chapter05/SqlLabel.md","ref":"chapter05/SqlLabel.md","articles":[]},"previous":{"title":"TreeLabel栏目树标签","level":"7.1.11","depth":2,"path":"chapter05/TreeLabel.md","ref":"chapter05/TreeLabel.md","articles":[]},"dir":"ltr"},"config":{"plugins":["anchors","favicon-absolute","highlight"],"styles":{"website":"./styles/website.css"},"pluginsConfig":{"favicon-absolute":{"appleTouchIconMore":{},"appleTouchIconPrecomposed152":"./source/images/favicon.png","appleTouchIconPrecomposedMore":{},"favicon":"./source/images/favicon.ico"},"anchors":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"王俊南","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"梦想家内容管理系统(Dreamer CMS)","language":"zh-hans","links":{"sidebar":{"I Teach You,我教你!":"http://www.iteachyou.cc","Dreamer CMS(Gitee)":"https://gitee.com/iteachyou/dreamer_cms","Dreamer CMS(Github)":"https://github.com/iteachyou-wjn/dreamer_cms"}},"gitbook":"3.2.3","description":"Dreamer CMS,梦想家内容管理系统官方使用文档"},"file":{"path":"chapter05/AttachmentLabel.md","mtime":"2023-09-28T07:00:56.520Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-05-14T01:34:04.807Z"},"basePath":"..","book":{"language":""}});
  569. });
  570. </script>
  571. </div>
  572. <script src="../gitbook/gitbook.js"></script>
  573. <script src="../gitbook/theme.js"></script>
  574. <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
  575. <script src="../gitbook/gitbook-plugin-search/search.js"></script>
  576. <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
  577. <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
  578. <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
  579. <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
  580. </body>
  581. </html>