<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>前端 on 唱诗班 | 景知行的博客</title>
    <link>https://changshiban.com/tags/%E5%89%8D%E7%AB%AF/</link>
    <description>Recent content in 前端 on 唱诗班 | 景知行的博客</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-cmn-Hans</language>
    <lastBuildDate>Fri, 30 Jun 2017 03:16:19 +0800</lastBuildDate><atom:link href="https://changshiban.com/tags/%E5%89%8D%E7%AB%AF/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>“古人”是如何加载脚本并防止缓存的</title>
      <link>https://changshiban.com/how-to-load-js-script-and-prevent-cache-10-years-ago/</link>
      <pubDate>Fri, 30 Jun 2017 03:16:19 +0800</pubDate>
      
      <guid>https://changshiban.com/how-to-load-js-script-and-prevent-cache-10-years-ago/</guid>
      <description>看到这样一行老代码：
with (document) 0[(getElementsByTagName(&amp;#39;head&amp;#39;)[0] || body).appendChild(createElement(&amp;#39;script&amp;#39;)).src = &amp;#39;http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=&amp;#39; + ~(-new Date() / 36e5)]; 初看一头雾水。拆解如下：</description>
    </item>
    
    <item>
      <title>单页应用的 OAuth 2 授权登录</title>
      <link>https://changshiban.com/oauth2-authorization-login-in-single-page-application/</link>
      <pubDate>Fri, 10 Mar 2017 09:22:55 +0800</pubDate>
      
      <guid>https://changshiban.com/oauth2-authorization-login-in-single-page-application/</guid>
      <description>🍺 背景：
前端为单页 Web 应用，后端为 REST API Server，两者之间是跨域请求。做第三方登录的时候，需要做一个后端回调地址，用户在第三方登录页面授权之后，第三方会重定向到这个回调地址，并通过 URL query 形式传递 code 参数；后端拿 code 去换取 accessToken ，最终拿 accessToken 去获取用户信息，再决定是否登录成功、建立 session 。</description>
    </item>
    
    <item>
      <title>随手笔记：服务器端渲染 &amp; 浏览器端渲染</title>
      <link>https://changshiban.com/server-side-render-and-browser-side-render/</link>
      <pubDate>Tue, 22 Sep 2015 21:01:49 +0800</pubDate>
      
      <guid>https://changshiban.com/server-side-render-and-browser-side-render/</guid>
      <description>前言：本文中提到的“渲染”指的是 render 阶段，即输出 HTML 的过程，而不是浏览器对 HTML 的 paint（绘制）阶段。你可以理解为 HTML = data + template。</description>
    </item>
    
  </channel>
</rss>
