WEB学习总结 +数据结构

时间:2023-03-09 05:40:33
WEB学习总结 +数据结构

HTML5 

<h1>会员注册界面</h1>
<form action="process.aspx" method="post" name="f1">
 用户名称:<input type="text" name="user" value="张三 " id="user"></br>
 联系电话:<input type="text" value="13705025431" id="number"></br>
 密码:<input type="password" id="password"></br>
 确认密码:<input type="password"id="passwords" onblur="box();"></br>
 性别:<input type="radio" name="male" value="male" checked="true" id="male" >男<input type="radio" name="male" value="female">女   
 </br>
 爱好

<input type="checkbox" name="sport" value="体育" checked="true" id="sport">体育<br>
 <input type="checkbox" name="sport" value="音乐" checked="true"id="music">音乐<br>
 <input type="checkbox" name="sport" value="文学" checked="true"id="wenxue">文学<br>
 <input type="checkbox" name="sport" value="其他"checked="true" id="other">其他<br>
 <input type="button" value="测试" id="tbtn"  name="sub"  onclick="ontext();"> </br>
 
 特长
<select name ="sports" id="sports">
<option value="书法">书法
<option value="书法">文学写作
<option value="书法">阅读

</select>
</form>

<script type="text/javascript">
 function box(){
  var word1=document.getElementById("password").value;
  var word2=document.getElementById("passwords").value;
 if(word1!=word2){
  alert("input again!");
  document.getElementById("password").value=""
  document.getElementById("passwords").value=""
 }
 }
 function ontext(){
 
  var str="";
   str="姓名:";
   str+=document.getElementById("user").value;
     str+="<br/>";
  str+="联系电话;";
      str+=document.getElementById("number").value;
   str+="<br/>";
  str+="密码:";
      str+=document.getElementById("password").value;
    str+="<br/>";
  str+="确认密码:";
      str+=document.getElementById("passwords").value;
   str+="<br/>";
  str+="性别:";
          var male=document.getElementById("male").checked;
   if(male) str+="男"
   else str+="女"
   str+="<br/>"; 
  str+="爱好:";
var temp=document.getElementsByName("sport");
  if(temp[0].checked)  str+="体育";
  if(temp[1].checked)  str+="音乐";
  if(temp[2].checked)  str+="文学";
  if(temp[3].checked ) str+="其他";
str+="<br/>";
str+="特长:";
   str+=document.getElementById("sports").value;
document.write(str);
}
</script>
  
</body>
</html>

爱好的多选框一直无法解决输出问题  上课上得有些零乱。只好利用周末的时间去解决!

数据结构与算法

因为 上课没怎么搞懂,导致机房实验时,时间不够。代码也没带回来!

只记得 删除链表项的时候是否删除成功是否查找到 返回值出现 内存 不能为READ , 和后续测试的插入 在I前I后插入也出现可内存不能为WRITTEN,指针问题没法搞明白。

这次应该着重的去复习结构体指针的使用。以及是否链表最后一项是否为NULL 而无法反回值。

这周要解决这些问题,不然下次还是出这样的错误。