?? api.php
字號:
<?php
require('config.php');
header('Content-Type: text/javascript');
// convert API config to Ext.Direct spec
$actions = array();
foreach($API as $aname=>&$a){
$methods = array();
foreach($a['methods'] as $mname=>&$m){
$md = array(
'name'=>$mname,
'len'=>$m['len']
);
if(isset($m['formHandler'])){
$md['formHandler'] = true;
}
$methods[] = $md;
}
$actions[$aname] = $methods;
}
$cfg = array(
'url'=>'php/router.php',
'type'=>'remoting',
'actions'=>$actions,
'namespace'=>'Imgorg.ss'
);
echo 'Imgorg.REMOTING_API = ';
echo json_encode($cfg);
echo ';';
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -