我想创建一个<html>
<body>
<div id="displayStatus" class="display"></div>
<input type="button" value="Click Me" onclick="handler(false)" ondblclick="handler(true)">
<input type="button" value="Switch Event" onclick="switchEvent()">
<script>
var isSwitched = false;
var display = document.getElementById("displayStatus");
function handler(isDoubleClick) {
isDoubleClick = (!isSwitched && isDoubleClick) || (isSwitched && !isDoubleClick);
display.innerHTML = isDoubleClick ? "Double Click" : "Single Click";
}
function switchEvent(){
isSwitched = !isSwitched;
}
</script>
</body>
</html>
和我的frm_client
的实例
方法是on_MessageRecived
。有关创建实例的问题,我无法找到答案。当我调试代码并创建async
的实例时,它无效。
frm_client