Commit 9698185b58b4372bb69173121e7ac9c0e41185c3
1 parent
82bc4887
javascript to html
Showing
1 changed file
with
2 additions
and
2 deletions
README.md
| ... | ... | @@ -15,7 +15,7 @@ |
| 15 | 15 | 字典操作全部由前端负责,主要有2种。 |
| 16 | 16 | |
| 17 | 17 | 1、将字典代码转换为中文 。片段加载完成后,包含 `class="nt-dictionary"` 的标签会被转换,data-group 为所属字典组。 |
| 18 | -``` javascript | |
| 18 | +``` html | |
| 19 | 19 | |
| 20 | 20 | <span class="nt-dictionary" data-group="XianLuXingZhi">GJXL</span> |
| 21 | 21 | |
| ... | ... | @@ -23,7 +23,7 @@ |
| 23 | 23 | <span class="dictionary" data-group="XianLuXingZhi" data-code="GJXL" >过江线路</span> |
| 24 | 24 | ``` |
| 25 | 25 | 2、生成下拉框,当包含`class="nt-dictionary"` 的标签是`select`时。 |
| 26 | -``` javascript | |
| 26 | +``` html | |
| 27 | 27 | <!- 原 --> |
| 28 | 28 | <select class="nt-dictionary" data-group="XianLuXingZhi" data-code="GJXL"></select> |
| 29 | 29 | ... | ... |