获得徽章 0
- <svg><use></use></svg>在IE下点击,event.taget居然是一个虚拟SVG元素实例,不是具体元素,于是很多DOM方法没法使用。需要使用event.target.correspondingUseElement作为目标target元素才行。或者在SVGElementInstance.prototype原型上打补丁,全局优化,例如:if (window.SVGElementInstance) {
SVGElementInstance.prototype.getAttribute = function (attributeName) {
if (this.correspondingUseElement) {
return this.correspondingUseElement.getAttribute(attributeName);
}
};
}。展开评论14 - 如果你在Google或者百度或者某些技术社区上面搜索 uwsgi+Flask,你会发现大量的文章,是教你如何使用 uwsgi+flask+Nginx搭建网站,这些文章清一色的都会让你使用Unix套接字连接Nginx和uwsgi。但是实际工作中,Nginx和uwsgi是运行在不同服务器上面的,他们应该使用HTTP进行通信。而网上的垃圾博客从来不讲如何通过配置文件设置uwsgi使用HTTP方式,所以我写了这篇文章。展开110
![[奸笑]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_17.bcebf79.png)