亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

把$fileField = $('<input type="file" name="thumbs[]"/>');改成對話框$fileField=prompt("請輸入商品圖片的超鏈接","http://");下面該怎么修改?

$(document).ready(function(){

? ? ? ? $("#selectFileBtn").click(function(){

? ? ? ? $fileField = $('<input type="file" name="thumbs[]"/>');

? ? ? ? /*$fileField.hide();*/

? ? ? ? $("#attachList").append($fileField);

? ? ? ? $fileField.trigger("click");

? ? ? ? $fileField.change(function(){

? ? ? ? $path = $(this).val();

? ? ? ? $filename = $path.substring($path.lastIndexOf("\\")+1);

? ? ? ? $attachItem = $('<div class="attachItem"><div class="left">a.gif</div><div class="right"><a href="#" title="刪除附件">刪除</a></div></div>');

? ? ? ? $attachItem.find(".left").html($filename);

? ? ? ? $("#attachList").append($attachItem);

? ? ? ? });

? ? ? ? });

? ? ? ? $("#attachList>.attachItem").find('a').live('click',function(obj,i){

? ? ? ? $(this).parents('.attachItem').prev('').remove();

? ? ? ? $(this).parents('.attachItem').remove();

? ? ? ? });


正在回答

0 回答

舉報

0/150
提交
取消
手把手教你實現電商網站后臺開發
  • 參與學習       117255    人
  • 解答問題       2101    個

手把手教你用PHP搭建電子商務平臺,由淺入深教你搭建電商系統

進入課程

把$fileField = $('<input type="file" name="thumbs[]"/>');改成對話框$fileField=prompt("請輸入商品圖片的超鏈接","http://");下面該怎么修改?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號