jquery加入css或js文件

if ($('link[ref$="/css/product_show.css"]').length == 0) {

$('<link href="/css/product_show.css" rel="stylesheet" type="text/css" />').appendTo('head');

}

js文件一样处理

posted @ 2015-09-25 17:59  我寺神经病  阅读(98)  评论(0)    收藏  举报