Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spencer Chang
hel-developer-guide
Commits
f2e64bf4
Commit
f2e64bf4
authored
Jul 31, 2017
by
高洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates mutillanguage.md
Auto commit by GitBook Editor
parent
55d11807
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
common-javascript.md
common-javascript.md
+9
-0
mutillanguage.md
mutillanguage.md
+5
-9
No files found.
common-javascript.md
0 → 100644
View file @
f2e64bf4
##字段级通用方法
*
设置字段必填或者非必填属性Hel.setRequired(id,flag);
第一个参数id为字段的id,第二个参数flag为true时将该字段设为必填,为false时将该字段设为非必填。
```
html
<h:hlsMaskedTextBox
id=
"maskedTextBox"
/>
```
```javascript
Hel.setRequired('maskedTextBox',true);
```
\ No newline at end of file
mutillanguage.md
View file @
f2e64bf4
\
#
界面多语言实现
#界面多语言实现
界面中的多语言在数据库中统一存放在sys
\_
prompts表中,系统启动时加载进redis缓存。界面中实现多语言是通过freemarker的标签以及对应的多语言code来实现。
界面中的多语言在数据库中统一存放在sys_prompts表中,系统启动时加载进redis缓存。界面中实现多语言是通过freemarker的标签以及对应的多语言code来实现。
例如:“确定”的多语言code是“sys.hand.btn.ok”在界面中的写法:
例如:“确定”的多语言code是“sys.hand.btn.ok”在界面中的写法:
```
html
\`\`\`
html
<
@
spring
.
message
"
sys
.
hand
.
btn
.
ok
"
/>
```
<
@spring.message "sys.hand.btn.ok"/
>
\`\`\`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment