有大佬帮忙看看么?Jquery
控制台:$('#infiles') 返回null,有哪位大佬帮忙看看code:
程序代码:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>JSoft Mpeg Worker</title> <style> </style> <script src="js/jquery.min.js"></script> </head> <body> <div class="main"> <div> <strong>输入文件路径:</strong><input id="infiles" type="text" placeholder="多个文件名用';'隔开"> <button onclick="judgeFile()">OK</button><br> <small id="elog" style="color:red"></small> </div><br> <h3>编辑选项</h3> <div><strong>提取:</strong> <select id="seltq" value="null"> <option value="null">全部</option> <option value="an">仅视频</option> <option value="vn">仅音频</option> </select> </div><br> <div><strong>编码:</strong> <br> 音频:<input id="acodec" type="text" placeholder="编码器" value="copy"> <br> 视频:<input id="vcodec" type="text" placeholder="编码器" value="copy"> </div><br> <div><strong>剪切:</strong> <select id="selcut" value="null"> <option value="null">全部</option> <option value="true">自定义</option> </select> <br> 从:<input id="cutss" type="text" placeholder="例:00:00:00.000" > <br> 到:<input id="cutto" type="text" placeholder="例:00:00:00.000" > </div><br> <div><strong>分辨率:</strong> <select id="selpx" value="null"> <option value="null">默认</option> <option value="true">自定义</option> </select> <br> 宽:高=<input id="pxhw" type="text" placeholder="例:1920:-1,-1为保持比例" > </div><br> <div><strong>图标:</strong> <select id="selicon" value="null"> <option value="null">无</option> <option value="aa">左上</option> <option value="bb">右下</option> <option value="ab">左下</option> <option value="ba">右上</option> </select> </div><br> <div><strong>码率:</strong> <select id="selcode" value="null"> <option value="null">默认</option> <option value="true">自定义</option> </select> <br> 视频码率:<input id="videocd" type="text" placeholder="例:600" >Kbps <br> 音频采样率:<input id="audioar" type="text" placeholder="例:40000" >Hz </div><br> <div><strong>倍速:</strong> <select id="selpts" value="null"> <option value="null">默认</option> <option value="true">自定义</option> </select> <br> 视频倍速:<input id="videonpts" type="text" placeholder="例:2" >x <br> 音频倍速:<input id="audioatempo" type="text" placeholder="例:2" >x </div><br> <div><strong>字幕:</strong> <select id="selsrt" value="null"> <option value="null">无</option> <option value="true">自定义</option> </select> </div><br> <div><strong>帧率:</strong> <select id="selframe" value="null"> <option value="null">默认</option> <option value="true">自定义</option> </select> <br> 帧率:<input id="videoframe" type="text" placeholder="例:24" > </div><br> <div><strong>拼接:</strong> <select id="selcat" value="null"> <option value="null">无</option> <option value="true">是</option> </select> </div><br> <div><strong>音量:</strong> <select id="selsound" value="null"> <option value="null">默认</option> <option value="true">自定义</option> </select> <br> 音量:<input id="sound" type="text" placeholder="例:0.5" > </div><br> <br> <div> <a href="javascript:;" onclick="newcmd()" style="font-family:'黑体';font-size:30px">生成</a> </div> </div> </body>