考虑以下数据结构:
subject (stdClass)
topic (stdClass)
units (int)
title (varchar 50)
description (varchar 255)
start_time (time)
end_time (time)
teacher (stdClass)
first_name (varchar 50)
last_name (varchar 50)
students (stdClass[])
1 (stdClass)
first_name (varchar 50)
last_name (varchar 50)
2 (stdClass)
first_name (varchar 50)
last_name (varchar 50)
3 (stdClass)
first_name (varchar 50)
last_name (varchar 50)
proctor (stdClass)
first_name (varchar 50)
last_name (varchar 50)
Run Code Online (Sandbox Code Playgroud)
我在如何将上述数据结构实现为动态Web表单方面存在问题.我不确定我将使用哪种类型的实现来使最终用户更容易填满.同时保持数据完整性.
场景:
那么我该如何使用网络表单呈现这一点?
我想使用jquery获取某个ajax请求的持续时间.例如,我正在使用此脚本:
$.ajax({
type: "GET",
url: "http://localhost/thescript.php",
success: function(data){
$("#container").html(data);
},
complete: function(jqXHR, textStatus){
alert("http://localhost/thescript.php took 'n' seconds to load");
}
});
Run Code Online (Sandbox Code Playgroud)
我希望能够知道这个ajax脚本加载了URL"http://localhost/thescript.php"多长时间.例如警告:"http://localhost/thescript.php加载'n'秒".