是否可以在html的视图源中隐藏包含部分

use*_*642 0 html javascript css php jquery

我在这个论坛上搜索了很多,以隐藏一些信息,如脚本include和css,我找不到任何有效的解决方案

这就是我在PHP脚本中所做的事情

     <html>
           <head><?php include('mylibrary/my_include.php');?></head>

        <body>
             <div></div>
        </body>

     </html>
Run Code Online (Sandbox Code Playgroud)

在视图源我得到这样的

<html>
     <head>
      <!-- My function -->
      <script type='text/javascript' src='Library/My_fun.js'></script>

      <!-- Index -->
      <link type="text/css" rel="stylesheet" href="Index/Index.css" />
      <link type="text/css" rel="stylesheet"  href="JS/jquery-ui.css" />
     </head>

     <body>
        <div></div>
     </body>

</html>
Run Code Online (Sandbox Code Playgroud)

我想隐藏在'mylibrary/my_include.php'中的视图源中的js和css ,是否可以这样做?或任何替代解决方案仅在viewsource或任何其他内容中显示以下内容

     <head><?php include('mylibrary/my_include.php');?></head> 
Run Code Online (Sandbox Code Playgroud)

Que*_*tin 5

没有.

如果不将其提供给用户,您就无法向浏览器提供内容.用户控制浏览器,你没有.