sto*_*ist 1 javascript php extjs
我有一个现有的面板,我用一个变量手动设置html,如下所示:
s = '<H1>My Html Page';
s += '[more html]]';
var panel = new Ext.Panel({
id: 'service_Billing',
title: 'Billing',
tbar: [],
html: s
});
Run Code Online (Sandbox Code Playgroud)
如何在.php文件的同一服务器服务器上指定路径而不是作为html源的变量.像/path/example/data.php之类的东西
你在找autoLoad.
var panel = new Ext.Panel({
autoLoad: '/path/example/data.php',
id: 'service_Billing',
title: 'Billing',
tbar: []
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1952 次 |
| 最近记录: |