Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BudgetManagementSystem
Overview
Overview
Details
Activity
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
王利雷
BudgetManagementSystem
Commits
3e339799
Commit
3e339799
authored
May 19, 2019
by
shj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成预算提示,总预算与预算分布的差值
parent
42269046
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
index.jsp
src/main/webapp/index.jsp
+0
-0
test.jsp
src/main/webapp/test.jsp
+24
-0
No files found.
src/main/webapp/index.jsp
View file @
3e339799
This diff is collapsed.
Click to expand it.
src/main/webapp/test.jsp
View file @
3e339799
...
...
@@ -121,6 +121,30 @@ ${pageContext.request.contextPath}<br>
});
</script>
<div
id=
"computedTest"
>
<input
type=
"number"
v-model=
"arr[0]"
>
<input
type=
"number"
v-model=
"arr[1]"
>
<p>
{{z}}
</p>
</div>
<script
type=
"text/javascript"
>
var
computedVue
=
new
Vue
({
el
:
"#computedTest"
,
data
:{
x
:
0
,
y
:
0
,
arr
:[]
},
computed
:{
z
:
function
()
{
var
sum
=
Number
(
0
);
for
(
var
i
=
0
;
i
<
this
.
arr
.
length
;
i
++
)
sum
+=
Number
(
this
.
arr
[
i
]);
return
sum
;
}
}
})
</script>
<script
type=
"text/javascript"
>
function
logout
()
{
if
(
confirm
(
"确认退出登录?"
)){
...
...
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