摘要: 自我对原型的理解 <!DOCTYPE html><html><head> <title>原型</title> <meta charset = "utf-8"></head><body> <script type="text/javascript">/*//构造函数 function Obj(name,age){ th 阅读全文
posted @ 2022-09-19 00:09 ifhsik 阅读(16) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html><head> <title>工厂模式和构造函数</title> <meta charset = "utf-8"></head><body> <script type="text/javascript">//工厂模式跟构造函数//在js中创建一个对象,然后在创 阅读全文
posted @ 2022-09-17 23:53 ifhsik 阅读(90) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html><head> <title>数组的方法</title> <meta charset="utf-8"></head><body> <script type="text/javascript">/* //转换方法 var box = Array("161班"," 阅读全文
posted @ 2022-09-17 00:35 ifhsik 阅读(16) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html><head> <title>获取控制</title> <meta charset="utf-8"></head><body> <script type="text/javascript"> /*//正则获取控制 var box = RegExp('f.n', 阅读全文
posted @ 2022-09-15 23:27 ifhsik 阅读(132) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html><head> <title>函数的运用</title> <meta charset="utf-8"></head><body> <script type="text/javascript">/*//使用字符串的正则表达式方法 //var box = new 阅读全文
posted @ 2022-09-14 23:27 ifhsik 阅读(46) 评论(0) 推荐(0)