JavsScript代码如下:
APS.NET前台调用如下:OnClientClick="return fucCheckJpgAndGif(form1.File1.value);" --其中File1为上传文件控件