Web Design

Long Polling Comet

分页

Syntax Highlight

BigPi

Video

Tools

前端测试

CDN

Notes

<input type="text" name="textfield" oncopy="return false">
<input type="text" name="textfield" oncut="return false">
<input type="text" name="textfield" onpaste="return false">

<input name="number" value="" style="ime-mode:disabled" />
document.onfocus = function(){document.body.style.imeMode = 'disabled'};

<form method="post" action="submit.asp" autocomplete="off"></form>
<input type="text" name="textfield" autocomplete="off">
element.setAttribute("AutoComplete", "off");

// 查看源代码:
window.location = "view-source:" + window.location.href;

懒懒交流会

开发流程

  1. 需求分析
  2. 草图设计
  3. 前后端协商每个页面本身的路径/名称,需要的变量及其名称,URL 传参名称等规格。
  4. 前后端分别开发设计。
  5. 前后端整合
  6. 测试

前后端分离&协作

get, post. url params submit action & params. ajax json format jsonp links target

P3P

// ASP.NET
HttpContext.Current.Response.AddHeader("p3p", "CP=\""IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""")
// PHP
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
// JSP
response.setHeader("P3P","CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'")
// ColdFusion
<cfheader name="P3P" value="CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'" />