jQuery文档onload和PHP回显 [英] JQuery document onload and PHP echo

查看:59
本文介绍了jQuery文档onload和PHP回显的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与正在编写的php页面有关的问题. 基本上,我的html页面的body标签中嵌入了一些php代码. php回显了几个div.现在,当我在html页面的开头部分放入一些jquery并调用$(document).ready(function(){...在我的嵌入式php回显了所有div之后会调用吗?

I have a question relating to a php page I am writing. Basically I have the some php code that is embedded in the body tags of my html page. The php echoes a couple of divs. Now, when I put some jquery in the head section of the html page, and call $(document).ready(function() {... will this be called after my embedded php has echoed all the divs?

非常感谢您的投入和最诚挚的问候.

Many thanks for your input, and best regards.

推荐答案

  1. 解释了PHP,构建了HTML
  2. HTML发送到浏览器
  3. 浏览器接收HTML,开始呈现页面,加载图像,css和js文件
  4. $(document).ready(定义的函数)被称为

这篇关于jQuery文档onload和PHP回显的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆