首页
技术
登录
6mi
u
盘
搜
搜 索
技术
htmlinput file图片上传预览js
htmlinput file图片上传预览js
技术
2022-07-11
131
$
(
'body'
)
.
on
(
'change'
,
'#file_upload'
,
function
(
)
{
var
read
=
new
FileReader
(
)
;
read
.
readAsDataURL
(
this
.
files
[
0
]
)
;
read
.
onload
=
function
(
)
{
$
(
'#url_img'
)
.
attr
(
'src'
,
read
.
result
)
;
}
;
}
)
;
···
转载请注明原文地址:https://ipadbbs.8miu.com/read-9686.html
最新回复
(
0
)