Can JavaScript set the mime type on window.open

后端 未结 2 1959
小鲜肉
小鲜肉 2021-01-18 14:53

I am trying to open a debug window within Javascript. Javascript will pass the debug window a JSON string which JSONView (a Chrome extension) should display in a nicely form

2条回答
  •  独厮守ぢ
    2021-01-18 15:03

    It is not possible.

    You'd be better off doing:

    console.log(JSON.parse($(".trend_chart").attr("data-trendChart")));
    

提交回复
热议问题