用event.shiftKey
onClick=test()function test()
{
if(event.shiftKey)
{
..
}
}shiftKey Property--------------------------------------------------------------------------------Retrieves the state of the SHIFT key. SyntaxHTML N/A
Scripting [ bKey = ] event.shiftKey Possible ValuesbKey Boolean that specifies one of the following values: false SHIFT key is not pressed.
true SHIFT key is pressed.
The property is read-only with no default value.
onClick=test()function test()
{
if(event.shiftKey)
{
..
}
}shiftKey Property--------------------------------------------------------------------------------Retrieves the state of the SHIFT key. SyntaxHTML N/A
Scripting [ bKey = ] event.shiftKey Possible ValuesbKey Boolean that specifies one of the following values: false SHIFT key is not pressed.
true SHIFT key is pressed.
The property is read-only with no default value.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货