Blob没有实现吗?模拟器运行提示Simulator: ReferenceError: Blob is not defined

Blob没有实现吗?模拟器运行提示Simulator: ReferenceError: Blob is not defined

websocket 需要用,请问怎么办?

var blob = new Blob([“aaaddd”],{type : ‘text/plain’});

Blob 不被 SpiderMonkey 支持非常正常吧,毕竟这是一个 host 端的 API,并且还是一个非标准的 API。要用的话建议 polyfill 一下。