http://shimengwen.github.io
http://git.oschina.net/shimengwen
https://www.zybuluo.com/king-/note/74403
WEB前端开发
·开发/·测试/·发布
WEB前端开发
WEB前端开发
HTML
HTML 4.01
HTML 5
XHTML 1.0
XHTML 2.0
WEB前端开发
CSS
Leave
Tools
WEB前端开发
CSS Tools
// Less
@bgcolor : #fff;
// Sass
$bgcolor : #fff;
//Stylus
$bgcolor : #fff;
// input
.warp {
a {
color : #333;
&:hover {
text-decoration : underline;
}
}
}
// output
.warp a{
color : #333;
}
.warp a:hover{
text-decoration : underline;
}
// Less -- input
.fontSize(value){
font-size:value;
}
.foo{
.fontSize(16px);
}
// output
.foo{
font-size:value;
}
// Sass -- input
@mixin fontSize(value){
font-size:value;
}
.foo{
@include fontSize(1em);
}
// output
.foo{
font-size:1em;
}
//Stylus -- input
fontSize(value){
font-size:value;
}
.foo{
fontSize(12px);
}
//output
.foo{
font-size: 12px;
}
WEB前端开发
JavaScript
class Point {
x: number;
y: number;
constructor(x: number, y: number) {
this.x = x;
this.y = y;
}
getDist() {
return Math.sqrt(this.x * this.x +
this.y * this.y);
}
}
var p = new Point(3,4);
var dist = p.getDst();
alert("Hypotenuse is: " + dist);
function Point() {
var x,y;
return {
setDist : function(x,y){
this.x = x;
this.y = y;
},
getDist : function(){
return Math.sqrt(this.x * this.x + this.y * this.y);
}
}
}
var p = new Point();
p.setDist(1,5);
var dist = p.getDist();
alert("Hypotenuse is: " + dist);
var Point = function(){var x,y;};
Point.prototype = {
setDist: function(x, y) {
this.x = x;
this.y = y;
},
getDist: function() {
return Math.sqrt(this.x * this.x + this.y * this.y);
}
}
var p = new Point();
p.setDist(1,5);
p.getDist();
WEB前端开发
浏览器
WEB前端开发
测试
单元测试
功能兼容性测试
https://www.zybuluo.com/king-/note/179849
WEB前端开发
测试 ---- 单元测试
https://www.zybuluo.com/king-/note/179820
WEB前端开发
测试 ---- iTest
https://www.zybuluo.com/king-/note/171416
WEB前端开发
发布
WEB前端开发
发布 ---- tools
《浏览器控制台的使用》
《使用yaoman+gurnt+brow构建自动化前端》
《web APP的开发与调试》