加载中...

随笔分类 -  JavaScript

摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2020-02-03 19:42 royal6 阅读(247) 评论(0) 推荐(0)
摘要:<!doctype html> <html> <head> <meta charset="utf-8"> <title>瀑布流</title> <style> .out{position: relative; margin: 0 auto;} .in{ float:left;} img{ margi 阅读全文
posted @ 2019-01-23 20:58 royal6 阅读(109) 评论(0) 推荐(0)
摘要:/* * *create by royal in 2019/1/23 * *royalAjax 自封装ajax函数 * *paramsObj JSON类型参数 *require params: * type : string * url : string * data : JSON * succes 阅读全文
posted @ 2019-01-23 13:55 royal6 阅读(190) 评论(0) 推荐(0)
摘要:js代码: <!doctype html> <html> <head> <meta charset="utf-8"> <title>三级联动</title> <style> select{ width:150px; height:35px;} </style> </head> <body> <sel 阅读全文
posted @ 2019-01-22 20:48 royal6 阅读(7436) 评论(0) 推荐(0)
摘要:<!doctype html> <html> <head> <meta charset="utf-8"> <title>上传文件TEST</title> <style> .demo{ width:50%; margin:120px auto;} </style> </head> <body> <di 阅读全文
posted @ 2019-01-21 21:05 royal6 阅读(261) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2019-01-21 14:53 royal6 阅读(3) 评论(0) 推荐(0)
摘要:JavaScript与JQuery节点操作 节点关系与类型 任何HTML元素,都有nodeType属性。值有1~12,常用的有: 1.元素节点 2.文本节点 8.注释节点 9.document节点(HTML文档对象) 10.DTD(文档类型定义) box.nodeType //返回值1,获得node 阅读全文
posted @ 2019-01-14 21:54 royal6 阅读(331) 评论(0) 推荐(0)
摘要:HTML+CSS代码: <!doctype html> <html> <head> <meta charset="utf-8"> <title>图片轮播</title> <style> *{ margin:0; padding:0;} ul{ list-style:none;} .clear{ cl 阅读全文
posted @ 2019-01-14 11:25 royal6 阅读(170) 评论(0) 推荐(0)
摘要:JQuery $函数 $("#box").css("background-color","red"); 一定要加引号,只有 1 $(this) 2 $(document) 3 $(window) $("#box")[0].style.backgroundColor = "red"; //$(“#bo 阅读全文
posted @ 2019-01-11 17:49 royal6 阅读(230) 评论(0) 推荐(0)
摘要:JavaScript代码 JavaScript的组成 ECMAScript 一种由Ecma国际通过ECMA-262标准化的脚本程序化设计语言。 BOM 提供浏览器交互的方法和接口 DOM 提供访问和操作网页内容的方法和接口 1.所有js代码必须写在script标签里,结尾必须带英文的分号(;) 2. 阅读全文
posted @ 2018-12-20 19:13 royal6 阅读(305) 评论(0) 推荐(0)