老师,我点击添加附件之后,没有任何反应,浏览器底部出现一条javascript:void(0),并不出现文件选择框,求解<?php
require_once '../include.php';
checkLogined();
$rows = getAllCate();
//print_r($rows);
if(!$rows){
alertMes("没有相应分类,请先添加","addCate.php");
}
?>
html>
-.-KindEditor.ready(function(K) {
window.editor = K.create('#editor_id');
});
$(document).ready(function(){
$("#selectFileBtn").click(function(){
$fileField = $('');
$fileField.hide();
$("#attachList").append($fileField);
$fileField.trigger("click");
$fileField.change(function(){
$path = $(this).val();
$filename = $path.substring($path.lastIndexOf("\\")+1);
$attachItem = $('
$attachItem.find(".left").html($filename);
$("#attachList").append($attachItem);
});
});
$("#attachList>.attachItem").find('a').live('click',function(obj,i){
$(this).parents('.attachItem').prev('input').remove();
$(this).parents('.attachItem').remove();
});
});
添加商品
商品名称 | |
商品分类 | "><?php echo $row['cName'];?> |
商品货号 | |
商品数量 | |
商品市场价 | |
商品慕课价 | |
商品描述 | |
商品图像 | 添加附件 |