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
c03b50d5
authored
2018-03-25 20:51:22 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
图片上传bug
1 parent
80a7229f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
application/views/work/图片上传.php
resource/upload.js
application/views/work/图片上传.php
View file @
c03b50d
...
...
@@ -13,8 +13,8 @@
</div>
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
</label>
<div
id=
"uploader-demo"
>
<
div
class=
"filePicker"
>
选择图片
</div
>
<div>
<
label
class=
"filePicker"
>
选择图片
</label
>
</div>
</div>
</div>
...
...
@@ -54,4 +54,4 @@
</div>
</div>
</div>
</div>
\ No newline at end of file
</div>
...
...
resource/upload.js
View file @
c03b50d
...
...
@@ -28,7 +28,6 @@ jQuery(function() {
// 当有文件添加进来的时候
uploader
.
on
(
'fileQueued'
,
function
(
file
)
{
console
.
log
(
file
);
var
$id
=
$
(
'select.uploader'
).
val
(),
$list
=
$
(
'tr[data-id='
+
$id
+
'] .filelist'
);
var
$li
=
$
(
'<div id="'
+
file
.
id
+
'" class="file-item thumbnail">'
+
'<img>'
+
'<div class="info">'
+
file
.
name
+
'</div>'
+
'</div>'
),
...
...
@@ -128,4 +127,4 @@ jQuery(function() {
$li
.
off
().
find
(
'.file-panel'
).
off
().
end
().
remove
();
alert
(
'删除成功'
);
}
});
\ No newline at end of file
});
...
...
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