How to handle common code in multiple HTML's using javascript or jQuery

后端 未结 4 2117
长情又很酷
长情又很酷 2021-02-13 17:40

I have an application which has almost 30 html\'s and they share some common code to which i f i made any changes i need to change it on every page. Below is the piece of code w

4条回答
  •  时光取名叫无心
    2021-02-13 18:00

    If you use php you can have that code in one single file and use include 'filename.php';

    http://php.net/manual/en/function.include.php

提交回复
热议问题