문과개발(2)
-
selectOne/delete/template
const express = require("express"); const app = express(); //npm install body-parser app.use(express.urlencoded({ extended: true })); //////////////////post방식 데이터 처리 //서버 listen const server = app.listen(3000, () => { console.log("Start Server: localhost:3000"); }); //__dirname: 현재 디렉토리 //page경로 설정 app.set("views", __dirname + "/views"); app.set("view engine", "ejs"); app.engine("html", require(..
2024.03.28 -
jquery:CSS
04_traversing_filtering $(function(){ $("li").not(".my").css("color","red") .end() .not(":even").css("font-size","40-px"); }); //end doc $(function(){ $("li").not(function(i,e){ console.log($(this).text()); return this.innerText=="A4"; }).css("color","red") .end() .not(function(idx, ele){ return idx%3==0; }).css("font-size","40px") }); //end doc Hello A1 A2 A3 A4 A5 A6 A7 A8 $(function(){ var x ..
2024.01.13