![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
IT届小白
这个作者很懒,什么都没留下…
展开
-
js中关于this的理解和应用(选项卡)
this的定义:在JavaScript中this表示函数运行的时候自动生成的一个内部对象,只能在函数内部使用。 简单例子 <script type="text/javascript"> alert(this); //window </script> 它指向的是window对象 随着函数使用场合的不同,this的值会发生变化。但是有一个总的原则,那...原创 2018-08-17 00:34:58 · 399 阅读 · 0 评论 -
学习笔记:node.js搭建web网站
第一步:先到官网下载并安装nodejs 安装教程路径:https://www.runoob.com/nodejs/nodejs-install-setup.html 第二步:在编译器中写好http.js文件 var http=require('http'); http.createServer(function(req,res){ res.writeHead(20...原创 2018-08-22 21:03:52 · 559 阅读 · 0 评论 -
ajax基于php页面请求json数据
在jQuery中封装有$.ajax方法可以直接来调用 ·testjson.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css&quo原创 2018-11-15 20:45:43 · 511 阅读 · 0 评论 -
通过class获取id的方法
参考链接:http://www.cnblogs.com/tongzhou/p/6795121.html <a class="a"></a> <aclass="a"></a> <aclass="a"></a> $('.a')// 选择了3个a,都是jq对象(可以用jq的属性、方法) $('.a').eq(1) /...原创 2019-04-13 22:51:30 · 2036 阅读 · 0 评论