摘要:
1. attr(name,value) 设置或获取属性 获取:例:$('#a').attr('href') 释: 获取id名为a的,名为href里面的内容 设置:例:$('#a').attr('href','true') 释: 获取id名为a的,把名为href里面的内容为true 注:name : 阅读全文
摘要:
载入http模块 创建服务器,并监听端口 1.使用 require 指令来载入 http 模块 例:var http=require("http") 2.创建服务器 例:http.createServer(function(req,res){ }).listen(8000) 注:使用 http 模块 阅读全文
摘要:
创建 localStorage window.localStorage.setltem(name,key) 注:name : 创建的名字 key : 名字所对应的值 setltem : 创建 获取 localStorage window.localStorage.getltem(name) 注:na 阅读全文