html返回上一頁
<input type="Button" name="Submit" onclick="window.history.back(-1);return false;" value="Back">
<a onClick="window.history.back(-1);return false;">點(diǎn)擊這里返回</a>
單用history.back()在我的chrome上無效蹲缠,需要使用window.history.back()
超鏈接按鈕
<button onclick="location. type="button"> www.example.com </button>
<a > <button>Click me</button> </a>
flask中傳遞參數(shù)方式
后端
app服務(wù)器內(nèi)申明全局變量傳遞
視圖函數(shù)帮碰、普通函數(shù)、實(shí)例化類
數(shù)據(jù)庫
讀寫本地文件
前后端
寫進(jìn)cookies(瀏覽器端)最大4KB
寫進(jìn)session(服務(wù)器端)最大4KB
前端jinja + form 后端render_template ('',para) 和 redirect ('',para)
前端用js+ajax訪問后端某視圖函數(shù),得到return的參數(shù)
call() got an unexpected keyword argument 'mimetype'
redirect(' ',Response)中的Responce是個(gè)類摄欲,不是實(shí)例挣输,不能這么用
css字體看起來很臟,有毛邊
font-weight 調(diào)整 [100,900]
-webkit-font-smoothing 抗鋸齒調(diào)整為 antialiased
-webkit-text-stroke 字體描邊調(diào)整為 0