Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ๋์ ํ ์ด๋ธ
- DATE_FORMAT
- MySQL
- ๋ช ๋ น์ด
- ๋ฆฌ๋ ์ค
- ๋์
- ์๋ฐ์คํฌ๋ฆฝํธ
- select
- ํ๋ก๊ทธ๋๋จธ์ค
- ๋ฐฑํฑ
- ํจ์
- ์ฝํ
- ๋ณ์
- optionํ๊ทธ
- SQL
- ๋์ปค
- ๋ฐฐ์ด
- post๋ฐฉ์
- oracle
- Update
- order by
- ์ปจํธ๋กค๋ฌ
- JavaScript
- Ajax
- like
- JSP
- ์ธ๋ผ์ธ๋ทฐ
- ํ ์ด๋ธ
- Spring
- JS
Archives
- Today
- Total
bom's happy life
[JS] ์์ ๋ค์ด๋ก๋ ํ์(๋ด๋ณด๋ด๊ธฐ ์ ํํ์ ์ง์ ํ๊ธฐ) ๋ณธ๋ฌธ
Deveolpment Study๐๏ธ/Javascript
[JS] ์์ ๋ค์ด๋ก๋ ํ์(๋ด๋ณด๋ด๊ธฐ ์ ํํ์ ์ง์ ํ๊ธฐ)
bompeach 2023. 7. 18. 23:04
<td style='mso-number-format: "@";'>01034567890</td>
์ด๋ ๊ฒ ์ง์ ํ๋ฉด "010" ์๋ฐ ๋ฌธ์๋ "10"์ผ๋ก ํ์๋์ง ์๊ณ "010"์ผ๋ก ์ ๋์จ๋ค
์ด๋ฐ์์ผ๋ก -->
<h3>ํ์ ๋ชฉ๋ก</h3>
<table border="1">
<thead>
<tr>
<th>ID</th>
<th>์ด๋ฆ</th>
<th>์ ํ๋ฒํธ</th>
</tr>
</thead>
<tbody>
<tr>
<td>patriot2</td>
<td>์ ๊ด์</td>
<td style='mso-number-format: "@";'>0431234567</td>
</tr>
<tr>
<td>pitcher</td>
<td>๋ฅํ์ง</td>
<td style='mso-number-format: "@";'>01034567890</td>
</tr>
<tr>
<td>historian</td>
<td>์ ์ฑํธ</td>
<td>001886123456</td>
</tr>
</tbody>
</table>
๋ค๋ฅธ ํ์ ์ฐธ๊ณ ํ๊ธฐ
//Styling Excel cells with mso-number-format
mso-number-format:"0" NO Decimals
mso-number-format:"0\.000" 3 Decimals
mso-number-format:"\#\,\#\#0\.000" Comma with 3 dec
mso-number-format:"mm\/dd\/yy" Date7
mso-number-format:"mmmm\ d\,\ yyyy" Date9
mso-number-format:"m\/d\/yy\ h\:mm\ AM\/PM" D -T AMPM
mso-number-format:"Short Date" 01/03/1998
mso-number-format:"Medium Date" 01-mar-98
mso-number-format:"d\-mmm\-yyyy" 01-mar-1998
mso-number-format:"Short Time" 5:16
mso-number-format:"Medium Time" 5:16 am
mso-number-format:"Long Time" 5:16:21:00
mso-number-format:"Percent" Percent - two decimals
mso-number-format:"0%" Percent - no decimals
mso-number-format:"0\.E+00" Scientific Notation
mso-number-format:"\@" Text
mso-number-format:"\#\ ???\/???" Fractions - up to 3 digits (312/943)
mso-number-format:"\0022£\0022\#\,\#\#0\.00" £12.76
mso-number-format:"\#\,\#\#0\.00_ \;\[Red\]\- 2 decimals, negative numbers in red and signed
\#\,\#\#0\.00\ " (1.56 -1.56)
<์์ ๋ค์ด๋ก๋ ์ ์ธ>
<%@ page language="java" contentType="application/vnd.ms-excel; name='excel', text/html;
charset=UTF-8" pageEncoding="UTF-8"%>
<%
response.setHeader("Content-Disposition", "attachment; filename=diary.xls");
response.setHeader("Content-Description", "JSP Generated Data");
response.setContentType("application/vnd.ms-excel");
%>
.
.
.
๋ธ๋ก๊ทธ ์ฐธ๊ณ ->
'Deveolpment Study๐๏ธ > Javascript' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[JS] ์์ alert๋ง๋ค๊ธฐ : toastAlert ๋ผ์ด๋ธ๋ฌ๋ฆฌ (0) | 2023.10.26 |
---|---|
[JS] window.onload = function() ๋? (0) | 2023.09.20 |
[JS] ํ์ ๋์ํญ๋ชฉ ์ฒดํฌ์ submit( )๋๊ฒ ํ๊ธฐ (0) | 2023.07.01 |
[JS] ๋ง ๋์ด ๊ณ์ฐํ๊ธฐ (0) | 2023.06.21 |
[JS] ๋์ ์ผ๋ก ์์ฑํ <option>ํ๊ทธ์ value ๊ฐ์ ธ์ค๊ธฐ (0) | 2023.06.07 |