javascript - dede 建站 如何在生成html 文件的时候 在head添加js
给我你的怀抱
给我你的怀抱 2017-05-16 13:07:17
0
3
529
没使用过dedecms ,现在要二次开发一个网站,需要判断当用户使用手机进入的时候,
就使用js 跳转到指定的手机网站上呢?
我发现dede 都是可以自动生成html的,自己在每个html 上加好像不太合理,
谁可以讲解一下啊?
给我你的怀抱
给我你的怀抱

reply all(3)
小葫芦

There should be a template, you can add it in the head or foot.

PHPzhong

Just add it to the head of the template, or write a common js file and import it into the template.

PHPzhong

Functions that can be processed directly in the include/dedetag.class.php file without using js. I think you should change the LoadTemplate function and use $_SERVER['HTTP_USER_AGENT'] to determine the browser core. Of course, if you are not good at writing php, it will be awkward.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!