随笔分类 -  javascript

摘要:使用jQuery: 1,下载jQuery http://jquery.com/download/ 2,引入jQuery文件 3,定义入口函数 <script src="jquery-1.12.2.js"></script> <script> // 第一种: $(document).ready(fun 阅读全文
posted @ 2019-05-14 21:54 Kay_xs 阅读(185) 评论(0) 推荐(0)
摘要:1,添加键盘抬起事件 2,获取文本框的内容,是否与数组中的内容匹配 3,创建元素 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> #box { width: 450 阅读全文
posted @ 2019-04-24 16:35 Kay_xs 阅读(454) 评论(0) 推荐(0)