Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0675346c
authored
2018-03-17 12:41:37 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
475a8d4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
application/views/common/header.php
application/views/work/add.php
application/views/common/header.php
View file @
0675346
...
...
@@ -25,5 +25,24 @@
<title>
标题
</title>
<script>
var
apiBaseUrl
=
"http://151.28ms.com:8088/"
;
(
function
(
$
){
$
.
fn
.
serializeJson
=
function
(){
var
serializeObj
=
{};
var
array
=
this
.
serializeArray
();
var
str
=
this
.
serialize
();
$
(
array
).
each
(
function
(){
if
(
serializeObj
[
this
.
name
]){
if
(
$
.
isArray
(
serializeObj
[
this
.
name
])){
serializeObj
[
this
.
name
].
push
(
this
.
value
);
}
else
{
serializeObj
[
this
.
name
]
=
[
serializeObj
[
this
.
name
],
this
.
value
];
}
}
else
{
serializeObj
[
this
.
name
]
=
this
.
value
;
}
});
return
serializeObj
;
};
})(
jQuery
);
</script>
</head>
...
...
application/views/work/add.php
View file @
0675346
...
...
@@ -66,7 +66,7 @@
cache
:
false
,
data
:
data
,
dataType
:
'json'
,
//
contentType: "application/json; charset=utf-8",
contentType
:
"application/json; charset=utf-8"
,
success
:
function
(
data
){
alert
(
'success'
);
},
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment