creditUpload.js
601 Bytes
define(function( require, exports, module ) {
/*
引入包
*/
$(function(){
var clock = setTimeout( function(){
$( ".manage-hint" ).slideUp();
}, 10000 );
$( ".manage-hint .hide" ).bind( "click", function(){
clearTimeout( clock );
$(this).parent().slideUp();
} );
$( ".upload-area .submitBtn" ).bind( "click", function(){
$( "#file-btn" ).click();
} );
$( "#file-btn" ).bind( "change", function(){
alert( $(this).attr("value") );
$( ".file-img" ).attr( "src", this.value );
} );
});
});