How to find whether a particular string has unicode characters (esp. Double Byte characters)

后端 未结 6 885
我在风中等你
我在风中等你 2020-12-08 13:55

To be more precise, I need to know whether (and if possible, how) I can find whether a given string has double byte characters or not. Basically, I need to open a pop-up to

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 14:41

    Why not let the window resize itself based on the runtime height/width?

    Run something like this in your pop-up:

    window.resizeTo(document.body.clientWidth, document.body.clientHeight);
    

提交回复
热议问题