随笔分类 -  老旧前端

摘要:JavaScript 中的数组提供了多种操作方法,以下是一些常见的数组操作示例: 1创建数组 javascript const numbers = [1, 2, 3, 4, 5]; 2访问数组元素 javascript console.log(numbers[0]); // 输出: 1 3修改数组元 阅读全文
posted @ 2024-06-06 11:20 天天向上518 阅读(6) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2023-11-01 00:45 天天向上518 阅读(1) 评论(0) 推荐(0) 编辑
摘要:1: 永远不要眼高手低,看起来很简单,但是你从来没有去动手试一下,就不知道其中真正需要注意的许多细节, 2:完整code如下: 1 <!DOCTYPE html> 2 <html lang="en"> 3 4 <head> 5 <meta charset="UTF-8"> 6 <meta name= 阅读全文
posted @ 2021-02-25 15:31 天天向上518 阅读(325) 评论(0) 推荐(1) 编辑
摘要:手机端rem简单配置相关 1 <!DOCTYPE html> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head runat="server"> 4 <meta http-equiv="Content-Type" content="text/h 阅读全文
posted @ 2021-02-09 17:35 天天向上518 阅读(93) 评论(0) 推荐(0) 编辑
摘要:// 这里只是简单的做一下记录,没有封装,作为笔记防止忘记了// contentMsg 里面是可以传入 HTML代码的 top.layer.alert(contentMsg, { area: [(_width - 5) + 'px', 'auto'], time: 20000, btn: false 阅读全文
posted @ 2019-11-06 09:28 天天向上518 阅读(1219) 评论(0) 推荐(0) 编辑