jjj*_*jjj -3 javascript c# database asp.net
我在javaScript中有这个菜单:
menu[1] = {
id: 'menu1', //use unique quoted id (quoted) REQUIRED!!
fontsize: '100%', // express as percentage with the % sign
linkheight: 22, // linked horizontal cells height
hdingwidth: 210, // heading - non linked horizontal cells width
// Finished configuration. Use default values for all other settings for this particular menu (menu[1]) ///
kviewtype: 'fixed',
menuItems: [ // REQUIRED!!
//[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
[prompt("add a note:", ""), "", ""]
]
};
Run Code Online (Sandbox Code Playgroud)
我想用数据库中的数据替换提示...
由于您的页面是由您使用的任何服务器脚本生成的,因此从数据库中获取数据并将其作为javascript的一部分进行操作.
无论你做什么,都不要试图直接从JAVASCRIPT连接到数据库.这样做将允许任何用户操纵javascript并在数据上运行他们想要的任何查询.
| 归档时间: |
|
| 查看次数: |
1134 次 |
| 最近记录: |