search

Home  >  Q&A  >  body text

javascript - When are some css styles added using string objects generally used?

var cs = "hello world!";
document.write(cs.fontcolor("red"));

It feels like it’s rarely used, right?

漂亮男人漂亮男人2867 days ago446

reply all(3)I'll reply

  • 漂亮男人

    漂亮男人2017-05-18 11:00:28

    Basically it will not be used. Nowadays, whoever develops does not use a framework, so the underlying functions will be less used.

    reply
    0
  • 阿神

    阿神2017-05-18 11:00:28

    js splicing html code

    reply
    0
  • 阿神

    阿神2017-05-18 11:00:28

    I’ve never seen this usage before. Isn’t it all about adding classes to DOM elements? 9

    reply
    0
  • Cancelreply