thinkphp easyui上传文件保存数据库的时候获取不到uploadify里input值? 5
获取不到uploadify里append增加的input值$('#file_upload').uploadify({swf:ThinkPHP['UPLOADIFY']+'...
获取不到uploadify里append增加的input值
$('#file_upload').uploadify({
swf: ThinkPHP['UPLOADIFY']+'/uploadify.swf',
uploader: ThinkPHP['UPLOADER'],
width:120,
height:20,
fileTypesDesc:'文件类型',
fileTypeExts:'*.jpeg;*.jpg;*.png;*.gif',
onUploadSuccess:function(file,data,response){
$('.fujian_pic_list').append('<input name="images" id="imagespath" value=' + data + '>'),
}
上传提交
$.ajax({
url: ThinkPHP['MODULE'] + '/Lawsuit/setfj',
type: 'POST',
data: {
Id: lawsuitFujianId.val(),
filename:$('#imagespath').val()
}, 展开
$('#file_upload').uploadify({
swf: ThinkPHP['UPLOADIFY']+'/uploadify.swf',
uploader: ThinkPHP['UPLOADER'],
width:120,
height:20,
fileTypesDesc:'文件类型',
fileTypeExts:'*.jpeg;*.jpg;*.png;*.gif',
onUploadSuccess:function(file,data,response){
$('.fujian_pic_list').append('<input name="images" id="imagespath" value=' + data + '>'),
}
上传提交
$.ajax({
url: ThinkPHP['MODULE'] + '/Lawsuit/setfj',
type: 'POST',
data: {
Id: lawsuitFujianId.val(),
filename:$('#imagespath').val()
}, 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询