前端
文章平均质量分 66
zylzl123
这个作者很懒,什么都没留下…
展开
-
前端学习
最近开始前端学习,发现又是一个海洋啊~~http://mp.weixin.qq.com/s?__biz=MjM5NzA1MTcyMA==&mid=208810541&idx=3&sn=2eac21850a3a95596d17fc63bfdccc81&scene=1&key=0acd51d81cb052bc9122ad7f675bf60ddcf95b4531783ea4a77e38814fe91转载 2015-08-10 14:32:14 · 241 阅读 · 0 评论 -
nodejs创建服务器和利用express创建服务器
1.利用http模块创建服务器var http=require('http');http.createServer(function (req,res){ res.writeHead(200,{'Content-Type':'text/plain'}); res.end('hello');}).listen(1337,'127.0.0.1');2.利用http创建服务器,执行文件操原创 2015-09-14 11:39:53 · 690 阅读 · 0 评论 -
PHP框架 CodeIgniter学习
原创 2015-08-20 15:29:23 · 263 阅读 · 0 评论 -
Angular简单例子
Angular应用 我的笔记保存清空剩余字数{{100-message.length}} angular.module('myapp',[]).controller('myctrl',function($scope){ $scope.message=""; $scope.save=function(){alert("note saved")}; $scope.c原创 2015-09-10 11:13:19 · 462 阅读 · 0 评论 -
Angular学习
Your name: 表达式 angular表达式 总价:{{quantity*cost }};姓名:{{person.firstName}}第二个值:{{points[1]}} 使用 ng-repeat 来循环数组 {{ x }} 控制器 Angular Controller原创 2015-09-09 17:25:06 · 327 阅读 · 0 评论 -
PHP学习,数据库操作
<?phpheader("Content-Type:text/html;charset=utf-8");//1.连接数据库$con=mysql_connect("localhost","root","");if(!$con){ die("can not connect".mysql_error());}else{ //如果连接时("localhost","","")会有错误,必原创 2015-08-19 13:39:06 · 228 阅读 · 0 评论 -
css样式学习
css设计 哈哈1.我是张三2.你是谁呀你猜你猜啊伪类选择符 水果 3.香蕉 3.苹果 零食 7.33333333 8.流动模型变为浮动模型 8.流动模型变为浮动模型了 9.行内元素居中10.定宽块状元素居中 11.不定宽块状元素居原创 2015-08-06 16:32:49 · 249 阅读 · 0 评论 -
PHP学习2,Session的使用
<?php//解决中文乱码问题header("Content-Type:text/html;charset=utf-8");//setcookie必须位于html标签之前,时间为1小时后过期setcookie("user","zhouyi",time()+3600);//删除cookie变更时间为过去即可//setcookie("user","zhouyi",time()-3600);原创 2015-08-19 10:43:24 · 276 阅读 · 0 评论 -
PHP学习
我的php<?php//1.输出echo "zhouyi php";//2.变量$color="red";echo "my shirt is ". $color."";//3.function readGlobalVariable(){ global $color;//读取全局变量 echo $color.""; $GLOBALS['color'] = "blue";原创 2015-08-19 10:30:25 · 289 阅读 · 0 评论 -
js页面传值的实现
1.拼凑url,跳转到url,在跳转页面中$.query.get("value");需要导入jquery.params.js2.传递控件的值:在跳转页面中$("#text").val(window.opener.document.getElementById("旧页面控件id").value);3.cookie:旧页面设置cookie值,新页面获取document,cookie.xxxxx(传多个原创 2015-08-05 16:29:33 · 441 阅读 · 0 评论 -
js跳转页面实现
window.location和window.open差别 function winlocation () { window.location="http://www.baidu.com"; } function winlocation2 () { window.location.href="http://www.baidu.com";//前两种方法是一样的含义 } func原创 2015-08-05 16:21:53 · 311 阅读 · 0 评论 -
nodejs+express的简单示例
首先安装nodejs后npm install express --savevar express = require('express');var app = express();// 主页输出 "Hello World"app.get('/', function (req, res) { console.log("主页 GET 请求"); res.send('Hello原创 2015-09-14 11:25:03 · 378 阅读 · 0 评论