当我试图记录我的一个项目时,我遇到了一个奇怪的问题.我有以下代码:
//! Set default ::$action for called controller. If no action is called, default (index) will be set.
$action = isset($_GET[ 'action']) ? $_GET[ 'action'] : 'index';
if ($action) {
echo 'something 1';
}else{
echo 'something 2';
}
//! Set default ::$action2 for called controller. If no action is called, default (index) will be set.
$action2 = isset($_GET[ 'action']) ? $_GET[ 'action'] : 'index';
//! Set default ::$action3 for called controller. If no action is called, default (index) will be …Run Code Online (Sandbox Code Playgroud) 我有以下代码:
$(document).ready(function() {
$("#TestLink").click(function() {
$("#LinkHolder").html("test");
});
});
<span id="LinkHolder">
<a href="SomeLink" id="TestLink" target="_blank">Click here to test</a>
</span>
Run Code Online (Sandbox Code Playgroud)
当我在链接上单击鼠标左键时,一切都像魅力一样,但当我用CTRL + LeftMouseButton或MiddleMouseButton单击它时,它不起作用.
如果有人可以帮我这个,我会很高兴的.
提前致谢!