');\n"; } } if(file_exists($this_src)){ $file=fopen($this_src,"r"); while(!feof($file)) { $statment = fgets($file); if(custom_strEmpty($statment)){ continue ; }else if(preg_match('/\/\/\/import\s+([^;]+);?/ies', $statment,$r)){ echo "document.write('');\n"; }else{ break; } } fclose($file); } //加载与用例同名的原文件,并避免重复加载 if($flag_ownSrc){ echo "document.write('');\n"; } } importSrc();