有谁知道这个警告指的是什么以及我将如何解决它?
[Deprecation] Resource requests whose URLs contain raw newline characters are deprecated, and may be blocked in M60, around August 2017. Please remove newlines from places like element attribute values in order to continue loading those resources. See https://www.chromestatus.com/features/5735596811091968 for more details.
最佳答案
根据我在其他地方发现的情况,这是由元素属性中的换行符引起的。
必须删除或替换换行符,例如:
String.replace(/\n|\r/g, "");
关于html - URL 包含原始换行符的资源请求已弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45983981/