摘要: JSON是轻量级的数据交换格式 JSON独立于语言* JSON是"自描述的"且易于理解 JSON 的语法是来自JavaScript 对象符号的语法,但JSON格式是纯文本。读取和生成JSON数据的代码可以在任何编程语言编写的。 JSON语法规则: 数据是名称/值对 数据由逗号分隔 花括号保存对象 方 阅读全文
posted @ 2022-02-06 23:55 kuaiquxie 阅读(38) 评论(0) 推荐(0) 编辑
摘要: js异常 try { // 供测试的代码块 } catch(err) { // 处理错误的代码块 } finally { // 无论结果如何都执行的代码块 } <!DOCTYPE html> <html> <body> <p>请输入 5 到 10 之间的数字:</p> <input id="demo 阅读全文
posted @ 2022-02-06 23:28 kuaiquxie 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 为表格添加边框 <!DOCTYPE html> <html> <head> <style> table, th, td { border: 1px solid black; } </style> </head> <body> <h1>为表格添加边框:</h1> <table> <tr> <th>Fi 阅读全文
posted @ 2022-02-06 23:18 kuaiquxie 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 使用单独的外边距属性 <!DOCTYPE html> <html> <head> <style> div { border: 1px solid black; margin-top: 100px; margin-bottom: 100px; margin-right: 150px; margin-l 阅读全文
posted @ 2022-02-06 23:01 kuaiquxie 阅读(62) 评论(0) 推荐(0) 编辑