c# keypress怎么用?例如浏览器的转到按钮

[复制链接]
查看11 | 回复2 | 2012-3-1 09:18:20 | 显示全部楼层 |阅读模式
你是说cs还是bs啊,bs结构的话 比较简单, 一楼说的就cs结构的话 需要调用系统API[System.Runtime.InteropServices.DllImport("shell32.dll")]
static extern IntPtr ShellExecute(
IntPtr hwnd,
string lpOperation,
string lpFile,
string lpParameters,
string lpDirectory,
int nShowCmd);使...
回复

使用道具 举报

千问 | 2012-3-1 09:18:20 | 显示全部楼层
function keypress(){if(event.keyCode==13){
var url = document.getElementById("").value;
window.open(url);}}...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行