ideo = []; $('#listModel').find('.position-relative').each(function () { if ( typeof $(this).attr('data-Video') != 'undefined' ) { video.push($(this).attr('data-Video')); } }); onScrfInput(); var scrfCode=$("input[name='scrfCode']").val(); if ( video.length > 0 ) { $.ajax({ type: 'post', url: '/works/index-out-init.html', data: {scrfCode: scrfCode, arrFileMd5: JSON.stringify(video), action: 'model-GetVideoAll'}, success: function ( msg ) { msg = eval('(' + msg + ')'); if ( typeof msg.error == 'undefined' ) { try{ var videoData = msg.listVideo; var len = videoData.length; for ( var i = 0; i < len; i++ ) { $('#listModel').find('.position-relative[data-Video="'+ videoData[i].md5 +'"]').attr('video-url', videoData[i].videoHls); $('#listModel').find('.position-relative[data-Video="'+ videoData[i].md5 +'"]').attr('data-status', videoData[i].status); } }catch( e ) {} } } }); }