在我的网络应用程序中,用户有时可以多次点击同一个按钮,跳过消息和内容,导致 </a>
被选中。
那么如何使用 Javascript (jQuery) 来防止这种情况
最佳答案
你不需要脚本,这里是 css:
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
关于javascript - 如何停止选择文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3469900/