sdl.html:1246 Rules for selecting event targets in HTML5 API are changing: instead of using document.getElementById() that only can refer to elements by their DOM ID, new event target selection mechanism uses the more flexible function document.querySelector() that can look up element names, classes, and complex CSS selectors. Build with -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1 to change to the new lookup rules. See https://github.com/emscripten-core/emscripten/pull/7977 for more details.
emcc版本号:(emscripten 1.38.30 : 1.38.30) 错误: 使用书上提示命令
行html时提示如下错误,
在https://github.com/emscripten-core/emscripten/pull/7977 查看需要添加
-s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1
参数,添加后,会报\暂时没找到可解决的方案