我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP项目 - 使用<script> / </ script>

I am working on a PHP project and see that <script>...</script> is used. What is this used for?

I see it in the code like:

else {
    echo '<script> userexist(); </script>';     
}

Anything printed by PHP is returned to the client. In this case the HTML is inserted into the webpage returned by the server. Script tags in HTML contain javascript. In this case it is inserting a call to the userexist() javascript function in your webpage.

近期文章

  • PHP页面无法正常工作[关闭]
  • 在PHP中的随机播放功能
  • 查询选择(LEFT JOIN)[关闭]
  • 获取文件最后修改属性的最佳方法
  • Google散点图 - {role:'style'} {role:'tooltip'}无法以JSON格式运行
  • PHP将多维数组合并为一个
  • 以相反的方式获取我桌子上的列表[重复]
  • PHP / MySQL查询没有明显原因停止工作
  • 在javascript if语句中取消设置$ _POST
  • 如何将日期mdy格式转换为ymd格式? [重复]
  • 退出$ _POST中的字符[重复]
  • 默认选择使用php函数[重复]
  • 什么是preg_match条件,以确保第一个数字是7?
  • 如何用document.getElementById('ElementID')替换document.write.innerHTML [关闭]
  • 收到错误:“访问被拒绝用户'a5760312_csgodep'@'localhost'(使用密码:是)”更多内容信息
  • 使用fopen编写2个文件
  • PHP和socket.io连接
  • 更改特定页面的标题?
  • 两个foreach与$ i干扰
  • 了解是否(!x)及其目的[重复]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华