How to load CSS using jquery

前端 未结 4 1595
孤独总比滥情好
孤独总比滥情好 2020-12-05 03:52

I have loaded a css file on server so I am having a URL with me. How can i load it in my perl code using JQuery ?

So currently I am hardcoding the css in my mason pa

4条回答
  •  感情败类
    2020-12-05 04:38

    I don't get why you can not just insert the element in the section, but here's a jQuery snippet:

    $('head').append( $('').attr('href', 'your stylesheet url') );
    

提交回复
热议问题