2012-03-22 3 views
1

私はAS3でこれを書く方法はわかりませんが、基本的にはBTSやTSが名前の前に来たら、何もしません。この文字列チェックをPHPからAS3に変換するには?

PHPスクリプト:

$theid =$this->uri->segment(3); 


if(substr($theid,0,3) =='BTS'){ 
    $theid = str_replace('BTS', 'TS', $theid); 
} 
$video = $this->ecx_model->custom_search_small($theid,'any','reference_id'); 

答えて

3
if (!theid.indexOf("BTS")) theid = theid.replace(/BTS/g, "TS"); 
関連する問題