1. 不建議 JSON Web Token(JWT) 儲存在 localStorage/sessionStorage,透過 JavaScript XSS 攻擊可以輕易存取到。
2. 可儲存 JWT 在 HttpOnly cookie ,一般來說如果後端有用一些簡單框架,都有防止 Cross-site request forgery (CSRF) 的攻擊方式來存取 cookie 資訊。
![]() |
| Wikimedia Commons - Augmented Reality |
![]() |
| Google Blogger 的 GDPR 宣告 |
const createMiddleware = (extraArgument) => ({dispatch, getState}) => (next) =>(action) => {//some code};
const createMiddleware = (extraArgument) => {
return ({dispatch, getState}) => {
return (next) => {
return (action) => {//some code};
}
}
}

scope : { name : "@name" }
name="{{nameFromParentScope}}">
scope : { name : "=name" },
link : function(scope) {
scope.name = "Changing the value here will get reflected in parent scope value";
}
name="{{nameFromParentScope}}">
scope : { nameChange : "&" }
link : function(scope) {
scope.nameChange({newName:"NameFromIsolaltedScope"});
}
nameChange="onNameChange(newName)">
Result result = myObject.myMethod(ctxt)Void elements can’t have any contents (since there’s no end tag, no content can be put between the start tag and the end tag).Code Example
<img>this is invalid img tag</img>