<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6966960206198868165</id><updated>2026-09-17T02:14:04.136+08:00</updated><category term="php"/><category term="javascript"/><category term="TQC"/><category term="CSS"/><category term="laravel"/><category term="jquery"/><category term="html"/><category term="實用的"/><category term="node.js"/><category term="vue"/><category term="git"/><category term="工作"/><category term="Flash"/><category term="project"/><category term="mysql"/><category term="RN"/><category term="frontend"/><category term="html5"/><category term="練習web"/><category term="android"/><category term="ubuntu"/><category term="前端"/><category term="GA"/><category term="Java"/><category term="google"/><category term="網頁"/><category term="Dw"/><category term="Linux"/><category term="apache"/><category term="github"/><category term="joomla"/><category term="node"/><category term="wort at Unisharp"/><category term="好用的工具"/><category term="網頁設計作業(作品)"/><category term="讀書心得"/><category term="Perl"/><category term="joomla! 3"/><category term="npm"/><category term="test"/><category term="生活"/><category term="3C"/><category term="ad"/><category term="bingad"/><category term="coursera"/><category term="ios"/><category term="rails"/><category term="sass"/><category term="yii"/><category term="工具"/><category term="快快樂樂學SASS"/><category term="旅遊"/><category term="網架應用實務班筆記"/><category term="ML"/><category term="RWD"/><category term="angular"/><category term="app"/><category term="bootstrap"/><category term="codeigniter"/><category term="compass"/><category term="docker"/><category term="dreamweaver"/><category term="elasticsearch"/><category term="facebook"/><category term="facebookSDK"/><category term="fedora"/><category term="grunt"/><category term="mac"/><category term="mobile"/><category term="pure"/><category term="redis"/><category term="ruby"/><category term="three.js"/><category term="vim"/><category term="旅行"/><category term="AngularJS"/><category term="BizLePro"/><category term="C"/><category term="GAIQ"/><category term="GTM"/><category term="JSDC"/><category term="MongoDB"/><category term="SCSS"/><category term="SFO"/><category term="TypeScript"/><category term="UI"/><category term="Yahoo"/><category term="ajax"/><category term="bing"/><category term="digitalOcean"/><category term="dreamweaver 5.5"/><category term="firefox"/><category term="meteor"/><category term="ng2"/><category term="objective-C"/><category term="oracle"/><category term="safari"/><category term="sails"/><category term="svg"/><category term="tdd"/><category term="visio"/><category term="youtube"/><category term="問與答"/><category term="美國"/><category term="讀書"/><category term="金流"/><category term="2014"/><category term="API"/><category term="BELP"/><category term="Berkeley"/><category term="C++"/><category term="CGI"/><category term="Express"/><category term="GDG"/><category term="GH"/><category term="GWAB"/><category term="MiCloud"/><category term="R"/><category term="SEO"/><category term="SmartOS"/><category term="TIL"/><category term="Unity"/><category term="YUI"/><category term="Yosemite"/><category term="adapt.js"/><category term="admin"/><category term="admod"/><category term="analytic"/><category term="aws"/><category term="bdd"/><category term="bitbucket"/><category term="bower"/><category term="canvas"/><category term="chai"/><category term="chrome"/><category term="cloud"/><category term="coffee"/><category term="colorbox"/><category term="composer"/><category term="conf"/><category term="d3"/><category term="data"/><category term="deploy"/><category term="eclipse"/><category term="es6"/><category term="expr"/><category term="fitbit"/><category term="go"/><category term="greensock"/><category term="gulp"/><category term="gzip"/><category term="hack"/><category term="herok"/><category term="heroku"/><category term="hipchat"/><category term="hitcon"/><category term="homebrew"/><category term="htaccess"/><category term="http"/><category term="hubot"/><category term="hugo"/><category term="i18n"/><category term="jade"/><category term="jekyll"/><category term="jquery UI"/><category term="jsdc2014"/><category term="life"/><category term="machine learning"/><category term="microsoft"/><category term="mongo"/><category term="nginx"/><category term="oca"/><category term="outlook"/><category term="parallax"/><category term="parallels"/><category term="phpconf2013"/><category term="phpconf2014"/><category term="phpmyadmin"/><category term="phpunit"/><category term="piwik"/><category term="play"/><category term="print"/><category term="python"/><category term="rail"/><category term="scm"/><category term="scrum"/><category term="semantic-ui"/><category term="sketch"/><category term="slack"/><category term="sqlite"/><category term="ssd"/><category term="svn"/><category term="template"/><category term="theme"/><category term="themeforest"/><category term="tomcat"/><category term="ux"/><category term="web"/><category term="win"/><category term="window"/><category term="windows 8 app"/><category term="wordpress"/><category term="九洲"/><category term="前端工程師"/><category term="多國語系"/><category term="收藏"/><category term="教學"/><category term="日本"/><category term="歐付寶"/><category term="玩樂"/><category term="第三方"/><category term="第三方支付"/><category term="耳機"/><category term="設計"/><category term="調查"/><category term="講座摘要"/><category term="證照"/><category term="資料科學"/><category term="軟體"/><category term="軟體工程"/><category term="重構"/><category term="鐵三角"/><category term="開箱"/><category term="雲端運算"/><category term="面試"/><category term="高雄"/><title type='text'>一些平鋪直敘技術相關文</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>587</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-5955554934884215288</id><published>2017-11-03T12:01:00.003+08:00</published><updated>2017-11-03T12:01:48.974+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vue"/><title type='text'>Vue multiselect set autofocus and tinymce set autofocus</title><summary type="text">要在畫面一進來 focus multiselect 的方式:參考:&amp;nbsp;https://jsfiddle.net/shentao/mnphdt2g/
主要就是在 multiselect 的 tag 加上 ref (例如: my_multiselect),
另外在 mounted() 執行:this.my_multiselect.$el.focus();------
要在畫面進來 focus tinymce 的方式:
關鍵字請搜尋 tinymce&amp;nbsp; init_instance_callbackhttps://stackoverflow.com/questions/19829126/tinymce-4-how-to-put-cursor-to-end-of-the-text
這就是解法還會判斷是不是有內文，有內文的話 會 cursor 到最後一的字後面。</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/5955554934884215288/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/11/vue-multiselect-set-autofocus-and.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/5955554934884215288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/5955554934884215288'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/11/vue-multiselect-set-autofocus-and.html' title='Vue multiselect set autofocus and tinymce set autofocus'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-4904416599823751617</id><published>2017-09-21T16:40:00.003+08:00</published><updated>2017-09-21T16:40:57.585+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vue"/><title type='text'>Vue extends 與 mixins 的不同</title><summary type="text">


photo crop from&amp;nbsp;https://unpkg.com/vue@2.3.0/dist/vue.js好久以前，大概半年前我用了 Vue Typehead 這個第三方套件，那時候就按照 readme 直接用 extends 用上，半年後我加了好多新功能，把一樣的 methods, data property 拆出去變成 mixins。
extends: VueTypeahead,
----
mixins: [ hasPager, hasSearch ],今天在整理 code 的時候，就好奇這兩個差別是什麼，看了一下 source code，好像是一樣的作用，最後都是呼叫 mergeOptions，只是 mixins 可以帶很多個 (因為是 Array)，extends 就一個。</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/4904416599823751617/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-extends-mixins.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/4904416599823751617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/4904416599823751617'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-extends-mixins.html' title='Vue extends 與 mixins 的不同'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisunYFQ83OcLeMYA93XIFEyKIG4XZlDEAt8bQbOb1sb6FAqaHzsHer7t0V-IAYioj3lbqpMVKZpmF-AtshwtJqjZEQ-NlGBtZ_BlZuiPEZpuSlxJntfsX-bNl_sS93bhO8QI0DrrekNXRj/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2017-09-21+%25E4%25B8%258B%25E5%258D%25884.31.09.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-3503159377931321061</id><published>2017-09-21T16:16:00.004+08:00</published><updated>2017-09-21T16:16:58.575+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vue"/><title type='text'>Vue 註冊全域的 Component</title><summary type="text">網站上有很多元件非常容易重複使用，例如 Loading 狀態，Alert 文字框，無資料的狀態，分頁等 Component，既然這些元件會時不時的被使用，那為何不直接註冊成 Global Component ?!，這樣就再也不用在每一頁重新 import 一次那些常用的 component 了。

在 new 一個 Vue 之前處理好這些 import 跟 註冊 component
// main.js, 匯入所有需要註冊成全域的 component
import Paginate from &#39;vuejs-paginate&#39;

import Loading from &#39;./components/Loader&#39;

import EmptyStatus from &#39;./components/EmptyStatus&#39;

// Register as global component
</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/3503159377931321061/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-component.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3503159377931321061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3503159377931321061'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-component.html' title='Vue 註冊全域的 Component'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-5161326010456891350</id><published>2017-09-19T16:26:00.003+08:00</published><updated>2017-09-19T17:16:35.342+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vue"/><title type='text'>Vue-Resource finally</title><summary type="text">在 Vue / Vue-Resource 接 api 時候，前陣子有一件事一直很困擾我，那就是 Promise 沒有一個狀態讓我知道已經完成，不論 request 是否成功或失敗，我只能知道 resolve, reject, cache... ，但我希望有一個像 jQuery 的 always 一樣，能夠給我放一個 callback 在 request 完成時呼叫 (不論結果如何)。

今天看到一篇文章&amp;nbsp;(Finally the Promise.prototype.finally() is available)，說 Promise 的 finally 已經在&amp;nbsp;TC39 ECMAScript Proposal 裡面，現在急要用的話可以走 polyfill，該文章有幾種 polyfill 的做法，可以參考看看。不過我看 Vue-Resource 的原始碼，已經有幫我處理過</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/5161326010456891350/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-resource-finally.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/5161326010456891350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/5161326010456891350'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-resource-finally.html' title='Vue-Resource finally'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-3561458535905451268</id><published>2017-09-18T17:11:00.001+08:00</published><updated>2017-09-18T17:11:35.299+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vue"/><title type='text'>使用 Vue Resource 的 interceptors 處理不同的 http status code</title><summary type="text">首先你的 Vue 專案也是使用 Vue Resource 處理 http request, 再往下看~

在 SPA 因為有大量接 API 的需求，但每次都要在獨立的 component 處理不同的 http status code 狀態，實在有點麻煩，比方說遇到 api 的 status 是 401 的話，就要再寫一個 router push 到使用者登入畫面之類的 code，重複的邏輯散落在各處 page component.

因為 vue resource 有個好用的 api 叫做&amp;nbsp;interceptors，覺得他跟 Laravel 的 middleware 很相似，就是所有 request 都會經過他，做一些處理，因此可以利用 interceptors 過濾每一次 request 的狀態，假如是 401 就導到 login, 假如是 404 就導過去 not </summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/3561458535905451268/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-resource-interceptors-http-status.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3561458535905451268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3561458535905451268'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-resource-interceptors-http-status.html' title='使用 Vue Resource 的 interceptors 處理不同的 http status code'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-6025213358622196201</id><published>2017-09-18T16:41:00.001+08:00</published><updated>2017-09-18T16:44:01.370+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vue"/><title type='text'>Vue Router 實作按需加載，將 JavaScript 拆成好幾隻</title><summary type="text">一開始使用 Vue 寫 Single Page Application (SPA)，頁面越來越多時，編譯出來的 build.js 越來越肥，覺得這樣 request 時 loading 蠻吃緊的，最高甚至到了 3MB 以上，雖然有 nginx 的 gzip 在前面擋著，不過還是有其他方式可以盡量減少檔案大小，因此就打算針對某些 routes 做成按需加載，也就是有走到某個頁面時，再加載該頁面的 JavaScript。

*我的專案是&amp;nbsp;Vue2&amp;nbsp;/&amp;nbsp;Webpack2&amp;nbsp;/&amp;nbsp;Vue-Router
1. &amp;nbsp;首先要在 routes 的 import 寫法改一下，把需要按需加載的頁面，改成 resolve require 的方式:
/*
import Home from &#39;../pages/Home&#39;
import Product from</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/6025213358622196201/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-router-javascript.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/6025213358622196201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/6025213358622196201'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-router-javascript.html' title='Vue Router 實作按需加載，將 JavaScript 拆成好幾隻'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmt9v2XPh2dIQiIuZLPfvO4RpSzTPgoEu3K2Tj_6UcUrikZ_YhHL0YXbijAPtrU2e4r_qE6aHHrOQr5dkog3Aa3hVr4mPCjmCHsow3fHXSHqrnAaDAImBB5gpneuweF8MN_hqwL0wS4PgA/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2017-09-18+%25E4%25B8%258B%25E5%258D%25884.06.06.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-3757331501728039253</id><published>2017-09-18T14:51:00.002+08:00</published><updated>2017-09-18T15:32:38.553+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vue"/><title type='text'>利用 Vue.prototype 來設定全域變數</title><summary type="text">在 Vue component 裏，隨時都有需要拿取一些設定的值，例如圖床的 domain，因為要組完整的圖片 url，例如某些功能是否要開啟，例如檔案大小的 MB 限制也要寫成設定，例如 api 的 endpoint，網址也不可能是 hard code, 也是統一透過一個設定而來。

寫成獨自的設定，不依賴後端傳設定，方便脫離後端。



我的做法是寫一隻 config，但是又需要丟進去給 Vue，
又不想直接 assing 給 window 物件 (如果要這麼公開的直接丟給 window，根本也不用寫 config.js，也很容易看到四散在各處的 window.xxx = 某個設定的值)
所以我就用了 Vue.prototype，集中管理所有跟設定有關的部分，傳給 Vue。



首先在專案的目錄的某處，放置這隻充滿設定的檔案，檔名我也叫 config.js


const </summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/3757331501728039253/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vueprototype.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3757331501728039253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3757331501728039253'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vueprototype.html' title='利用 Vue.prototype 來設定全域變數'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-1770118752938499800</id><published>2017-09-18T11:26:00.001+08:00</published><updated>2017-09-18T11:26:08.221+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>在 Google custom search 加上 callback</title><summary type="text">很多人都習慣直接使用 Google 的 custom search 服務，在自己的網站上加入搜尋框。

假如現在有個需求是，想要紀錄使用者在 custom search 上搜尋的文字紀錄，方便公司做統計，什麼樣的單字是使用者特別想搜尋的，那就會需要一個 callback function 是使用者透過 custom search 後取得使用者 key 的單字。

其實官方文件有提到如何使用 callback，請參考，只是一開始我覺得官方這個範例不是很直覺。後來還是靠 stackoverflow取得&amp;nbsp;實作參考。

我是使用這組解法，後來有成功~

window.__gcse = {
 callback: myCallback
};

自定義一個 function (暫時叫 myCallback) 給 _gcse 的 callback，然後在 myCallback 記得接住 </summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/1770118752938499800/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/google-custom-search-callback.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/1770118752938499800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/1770118752938499800'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/google-custom-search-callback.html' title='在 Google custom search 加上 callback'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-474600690703155069</id><published>2017-09-18T11:03:00.001+08:00</published><updated>2017-09-18T11:07:25.793+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vue"/><title type='text'>在 Vue 使用 SweetAlert2</title><summary type="text">本文假設你已經裝好 Vue 以及 Webpack 等設定。
首先需要安裝 sweetalert2:

npm i sweetalert2 --save-dev


在主要的程式進入點，例如: main.js (看個人摟) 做 import:

import swal from &#39;sweetalert2&#39;


接著在下方定義 swalPlugin
另外把 sweetalert2 的設定指回去給 Vue.prototype.$swal
你也可以定義別的名稱，例如 Vue.prototype.$sweetalert2 之類的。

const swalPlugin = {}

swalPlugin.install = function(Vue){

 swal.setDefaults({

  confirmButtonClass: &#39;btn btn-primary&#39;,

  </summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/474600690703155069/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-sweetalert2.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/474600690703155069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/474600690703155069'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/vue-sweetalert2.html' title='在 Vue 使用 SweetAlert2'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQESZN_WOQd8cFT_PxPlbjH4Q9nDq2YXpMSsaNtr24eXJ2G99pkhV1-YytWcsHT_wL-KSBpwMOl34MFrVSppjKIc42GRpO_gIcZGpLb0Sdohz-YNcMmVHVqxiAhDW6skZO5lOvw6UmiBgU/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2017-09-18+%25E4%25B8%258A%25E5%258D%258810.56.32.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-8219082562564137609</id><published>2017-09-18T10:14:00.000+08:00</published><updated>2017-09-18T10:14:19.036+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>解決 ellipsis 無法在 table-row 之下正常顯示</title><summary type="text">CSS 的 ellipsis 是用來解決限制文字長度，過長則可以幫你在字尾加上 “...”，讓你不必費心思考怎麼處理 ... ，也不須麻煩後端做字元數量計算，&amp;nbsp;參考連結。
---
BTW: 但有個缺點就是只限制在文字只需要顯示最多一行的情況，多行的話則沒有辦法 (應該說辦法是有，只是還不能用 (以後可以期待 https://drafts.csswg.org/css-ui-4/#overflow-string)，而且解法我也認為大多是 workaround，除非等新的 css 屬性出來，所以多行擷取字元的話還是交給強大的後端吧，JS 處理顯得有些麻煩)
---



不過問題是因為我參考了網路上 sticky-footer 的做法 (參考)，因為網頁主要的 container, dispay: 是 table-row, 結果在整個網站想要使用 ellipsis 突然就沒有作用，</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/8219082562564137609/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/ellipsis-table-row.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/8219082562564137609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/8219082562564137609'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/09/ellipsis-table-row.html' title='解決 ellipsis 無法在 table-row 之下正常顯示'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-3390813580232775927</id><published>2017-04-24T14:41:00.000+08:00</published><updated>2017-04-24T14:42:38.852+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vue"/><title type='text'>為 Vue 專案加上 eslint</title><summary type="text">背景
vue2&amp;nbsp;+ webpack2

所需要的 package
npm i babel-eslint eslint eslint-config-vue eslint-loader,&amp;nbsp;eslint-plugin-vue --save-dev

webpack loader 調整為:
{
 // 轉 ES6 以及 處理 Eslint 檢查
 test: /\.js$/,
 use: [
  &#39;babel-loader&#39;,
  &#39;eslint-loader&#39;
 ],
 include: [
 &amp;nbsp; &amp;nbsp; &amp;nbsp;path.join(__dirname, &#39;./resources/assets/js/&#39;)
 ]
},



include 可以換成 exclude, 如果你的專案結構很簡單的話。

另外在 loaderOptionsPlugin 調整為:</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/3390813580232775927/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/04/vue-eslint.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3390813580232775927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3390813580232775927'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/04/vue-eslint.html' title='為 Vue 專案加上 eslint'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-3696338302533627537</id><published>2017-02-13T18:53:00.001+08:00</published><updated>2017-02-13T18:54:48.276+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="laravel"/><title type='text'>升級 Laravel 5.4 出現  Call to undefined method dispatch()</title><summary type="text">參考&amp;nbsp;http://stackoverflow.com/questions/42057797/laravel-5-4-artisan-migrate-fails-with-call-to-undefined-method-dispatch。

如果升級時，執行 php artisan 相關指令沒事，就不用理會這個。但如果出現類似錯誤，先把&amp;nbsp;bootstrap/cache 底下的檔案都刪掉，然後執行

php artisan cache:clear
php artisan view:clear
</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/3696338302533627537/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2017/02/laravel-54-call-to-undefined-method.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3696338302533627537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3696338302533627537'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2017/02/laravel-54-call-to-undefined-method.html' title='升級 Laravel 5.4 出現  Call to undefined method dispatch()'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-3736347219718384061</id><published>2016-11-11T15:57:00.000+08:00</published><updated>2016-11-11T15:59:29.334+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="safari"/><title type='text'>處理 Safari 無法播放 video  mp4 的一些問題</title><summary type="text">最近開始覺得 Safari 大概是未來的 IE。

在使用 HTML5 &amp;nbsp;的 video 播放影片時，遇到兩種影片播不出來的情況。

情況一

較少人會遇到，就是尚未更新成最新的 OS 作業系統，(我的情況是作業系統 OS X EI Capitan, safari版本: 9.0.2)，很不巧的我是用自己 server 的 https，當你的 SSL 憑證不是可以信任的，safari 無法載入 mp4，解法是什麼，就只好把 https 改成 http 了。

這個問題找好久，而且還要找到一台尚未更新 OS 的 Mac 來測真的很有困難。參考:&amp;nbsp;http://stackoverflow.com/questions/25709713/safari-will-not-play-mp4-over-https,&amp;nbsp;Cannot view Quicktime movies </summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/3736347219718384061/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/11/safari-mp4.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3736347219718384061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/3736347219718384061'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/11/safari-mp4.html' title='處理 Safari 無法播放 video  mp4 的一些問題'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-8009716184871045681</id><published>2016-11-01T14:40:00.000+08:00</published><updated>2016-11-01T14:40:51.287+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="svg"/><title type='text'>[工作筆記] 原來 IE 不支援 SVG 的 animation...</title><summary type="text">參考:&amp;nbsp;[SVG animation is not working on IE11] http://stackoverflow.com/questions/33812303/svg-animation-is-not-working-on-ie11

因為今天在處理一個 svg 的動畫發現在 IE 跑不出來，原本以為是因為使用 stroke-dasharray 跟 stroke-dashoffset... ，結果得到的解答是只有 Edge 會支援 SVG 的 Transition 跟 animation。簡單來說目前沒有特別方便快速的解法，網路上的解法建議是轉用 svg 的 library 像是 GreenSock 。

連我都還沒使用到 Edge 的人了，直接放棄在 IE 上的效果，結案。不過依舊要寫兩份樣式，先偵測瀏覽器是否為 IE，在 &amp;lt;body&amp;gt; 上 </summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/8009716184871045681/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/11/ie-svg-animation.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/8009716184871045681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/8009716184871045681'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/11/ie-svg-animation.html' title='[工作筆記] 原來 IE 不支援 SVG 的 animation...'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-313578506565081041</id><published>2016-10-19T09:38:00.004+08:00</published><updated>2016-10-19T09:38:59.696+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="compass"/><category scheme="http://www.blogger.com/atom/ns#" term="工作"/><title type='text'>更新 macOS Sierra 之後 compass 指令不見</title><summary type="text">昨天更新 macOS Sierra 之後，執行 compass 出現&amp;nbsp;Operation not permitted - /usr/bin/compass，後來找到了一個方式，就是先切換成 root，再安裝:

sudo su

sudo gem install -n /usr/local/bin compass


不過要小心，在你更新完作業系統的之後，也請你先更新 xcode，再來處理這些 compass 路徑的問題。xcode 的安裝試試在 cli 執行 xcode-select --install，或是打開你的 App Store 找到他，然後更新，再來處理 compass 的安裝。


若這個解法不適合你，或者你是使用 homebrew 在安裝的話，你可以參考:&amp;nbsp;Compass install fails on OS X 10.11 due to new </summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/313578506565081041/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/macos-sierra-compass.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/313578506565081041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/313578506565081041'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/macos-sierra-compass.html' title='更新 macOS Sierra 之後 compass 指令不見'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-8623190437077357676</id><published>2016-10-17T23:14:00.002+08:00</published><updated>2016-10-17T23:14:34.121+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>[工作筆記] git filemode 設定，避免檔案權限不同而進 git status</title><summary type="text">最近工作常常在 windows 跟 Mac, Linux 上切換來切換去，發現在 Mac 掛磁碟機近來的 Repo 莫名其妙都進 git status 變成需要 diff 的檔案，明明也沒修改什麼，也有可能是因為用 afp 掛進來的，然後我也完全忘記有檔案權限這件事情，還好同事英明，快速指出原因。要讓 git 忽略這個問題，只要設定 git 的 filemode 就行:git config core.fileMode false若想要設定成全域，加上 --global 就可以。參考:
How do I make Git ignore file mode (chmod) changes?

git tips: 设置filemode，避免NTFS文件权限变更引起的修改

git关于文件权限修改引起的冲突及忽略文件权限的办法
</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/8623190437077357676/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/git-filemode-git-status.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/8623190437077357676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/8623190437077357676'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/git-filemode-git-status.html' title='[工作筆記] git filemode 設定，避免檔案權限不同而進 git status'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-7588170566538704643</id><published>2016-10-16T23:39:00.001+08:00</published><updated>2016-10-16T23:39:38.886+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="前端"/><category scheme="http://www.blogger.com/atom/ns#" term="工具"/><title type='text'>Chrome 開發人員工具 console 的一些快速選擇的用法</title><summary type="text">開發工具一直都是前端人員的求生工具之一，相信大家在使用瀏覽器 Debug 時通常也都會開啟 F12 的開發人員工具，最近我從書上學到一些快速 &amp;amp; 覺得實用的 selector (也許是老掉牙的知識了?!)，紀錄一下:


(1) $0 選取目前被鎖定的元素
假如你已經在頁面上選擇某個元素了，那可以直接利用 $0 去選擇到你選到的 DOM。另外若你有載入 jQuery 的話，就可以直接利用 $($0) (或是 jQuery($0))去操作它。

其實 $( ) 代表的是 document.getElementById，但如果你裝的 library 也有 $( ) 這個 function，就會被你裝的 library 給取代。不過還好用 jQuery 感覺是沒差。

利用選取工具，去選擇你要的 DOM。



直接使用 $0:







而且 chrome 會記錄歷程，假設你選取</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/7588170566538704643/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/chrome-console.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/7588170566538704643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/7588170566538704643'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/chrome-console.html' title='Chrome 開發人員工具 console 的一些快速選擇的用法'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0199tK0xtG8YITDJbyX8TEhSm3yfw1KZsRYRpjr2Kt7j8hpF8yvNYBYZudmsjhLe7Nk_DPysfFU45sebUz3nQyTToRSvjLf6KX4JC5PIIOMRVSQz1acKO2bZyHLMlbItNTTc1RMfLw64X/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-16+%25E4%25B8%258B%25E5%258D%258811.03.34.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-2119049879965924029</id><published>2016-10-14T23:59:00.000+08:00</published><updated>2016-10-17T00:00:29.739+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SEO"/><title type='text'>轉址 301 與 302 的不同</title><summary type="text">剛開始在買這個 domain 的時候，其實 winwu.cc 以及 www.winwu.cc 都可以連到，問題是我希望搜尋引擎以 www.winwu.cc 為主要的網址，那麼，沒有 www 這個 domain 或是利用其他 domain 時，我要把 user 導到 www.winwu.cc，這時候要選擇哪一種轉址呢?!



301
301 代表的是永久性的轉址，希望搜尋引擎不要去 index 原本的網址，以轉址後到達的頁面為主。

302
暫時性的轉址，原本的網址也希望被瀏覽器 index，只是可能因為什麼原因，所以需要先導到另外一個網址去。


我想只有在換網址時才會遇到這個問題，我其實也是在 godaddy 做 redirect 時才遇到過。以我的案例來說也是選擇 301，因為我希望搜尋引擎可以用 www 開頭的網址為主。

網路上也有些方便的工具幫你檢測是否為 301，像是 </summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/2119049879965924029/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/301-302.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/2119049879965924029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/2119049879965924029'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/301-302.html' title='轉址 301 與 302 的不同'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-6039697432686264043</id><published>2016-10-13T09:36:00.001+08:00</published><updated>2016-10-13T09:36:08.606+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="compass"/><category scheme="http://www.blogger.com/atom/ns#" term="SCSS"/><title type='text'>Compass 編譯的 Warning: DEPRECATION WARNING on line ..._deprecated-support.scss:</title><summary type="text">在跑 Gulp Compass 編譯 scss 時，一直出現這個 Warning 讓我覺得很焦躁，雖然是可以不管他。

詳細的錯誤訊息是:
DEPRECATION WARNING on line 92 of 
XXXX/compass/css3/_deprecated-support.scss: #{}
interpolation near operators will be simplified
in a future version of Sass. To preserve the current behavior, use quotes:

unquote(&#39;&quot;$ie6-&quot;#{$legacy-support-for-ie6} 
&quot;$ie7-&quot;#{$legacy-support-for-ie7} &quot;$ie8-&quot;#{$legacy-support-for-ie8}&#39;)

You can</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/6039697432686264043/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/compass-warning-deprecation-warning-on.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/6039697432686264043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/6039697432686264043'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/compass-warning-deprecation-warning-on.html' title='Compass 編譯的 Warning: DEPRECATION WARNING on line ..._deprecated-support.scss:'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-7635825117208189890</id><published>2016-10-08T23:17:00.002+08:00</published><updated>2016-10-08T23:17:16.963+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="生活"/><title type='text'>九月份</title><summary type="text">


今年的九月份說起來也蠻忙的，我在 Women Who Code Taipei &amp;nbsp;講了四次的基礎前端講座，若您有興趣也可以看看這些投影片，但是精華部分比較少，這四次的上課走法講求希望讓來參與課程的同學可以實作，所以投影片內容都不多，上課時話比較多。有些投影片若內容不完整，我也是透過口頭說明，可能是剛好有一兩週比較忙 QQ第一週
第二週
第三週
第四週


您也可以持續關注 Women Who Code Taipei 的活動，http://www.meetup.com/Women-Who-Code-Taipei/events。四周短短加起來不到10小時上課時數，不過有些同學也是很認真的交作業，很不簡單 :) &amp;nbsp;當初我也有點掙扎四周可以講些什麼內容 XD---九月份還有另外一個比較重大的變化就是離職，我換了一家新公司，新的開始，很希望可以待上個 3 年以上。離開的那家</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/7635825117208189890/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/7635825117208189890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/7635825117208189890'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/10/blog-post.html' title='九月份'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-1169486022153509450</id><published>2016-09-26T11:49:00.004+08:00</published><updated>2016-09-26T11:49:56.403+08:00</updated><title type='text'>讓 git 將大小寫檔名修正視為不同的檔案</title><summary type="text">修改資料夾大小寫時，發現只修改大小寫沒有被視為 change 過的檔案
(這樣就沒辦法 commit 呀 !!)

將 git 的這個設定打開:&amp;nbsp;git config core.ignorecase false

可以讓 git 將大小寫修正視為不同的檔案，這樣 git status 就會看到變化，進而可以正常 commit.


(久久沒發文竟然是因為這種小問題... QQ)
</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/1169486022153509450/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/09/git.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/1169486022153509450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/1169486022153509450'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/09/git.html' title='讓 git 將大小寫檔名修正視為不同的檔案'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-855279369049485841</id><published>2016-08-30T10:10:00.000+08:00</published><updated>2016-08-30T10:10:34.627+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="生活"/><title type='text'>八月份</title><summary type="text">讀《30歲前，你一定要去小公司》


很早之前在臉書看到某大神推薦這本書，上個月在書店看到，就買回家看。正確地來說應該是 45 個去小公司的優點，應該跟 30 歲無關吧 (總覺得台灣的翻譯商很喜歡幹這種標題殺人法，不知道是不想賺30歲以上的錢還是?!)。

作者自身在大公司待了蠻久的，30幾歲初，轉職至小公司，最後自己創業，從書上分享一些某些想法在大小公司上的優劣，以及心態，比較適合不知道自己該去哪一家公司的人 (如果同時有拿到大公司 offer 跟小公司 offer 的話)，可以給點方向，但台灣的企業，中小企業居多就是了。

書籍:&amp;nbsp;http://www.books.com.tw/products/0010705881



讀《成為搶手人才的關鍵法則》

這本也是書名不能讓我接受但內容還 ok 的一本書。換句話說不如說是一本，”哪些雷, 哪些話，應該在職場上避開的經驗分享“</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/855279369049485841/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/08/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/855279369049485841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/855279369049485841'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/08/blog-post.html' title='八月份'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-8161266392155641935</id><published>2016-07-28T16:40:00.000+08:00</published><updated>2016-07-28T16:41:06.262+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TIL"/><title type='text'>TIL - 文章筆記 看了一篇線性回歸的文章</title><summary type="text">
http://adit.io/posts/2016-03-13-Logistic-Regression.html

這篇作者寫的線性回歸，涵蓋 Ng 在 Coursera 上的 ML 第三章的內容。
線性回歸是一個分類的演算法。

線性回歸說起來是還蠻簡單的:

1. 準備你的資料
2. 把資料灑到圖上 (graph)
3. 然後畫一條線 (應該會有最適合的.. 看題目是什麼...)，可以把灑在圖上的資料做個切分 這條線叫做 Dicision Boundary.

---

* g (...) 也稱為 sigmoid function，我們用這個 function 來約束預測的結果，使結果只會介於 0 ~ 1，單位是百分比值，如結果是 .95 則預測結果是 95%。
* Dicision boundary 是一條可以把你的資料區分成兩塊 (也就是分類) 的線。
* 如果你需要非線性分類</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/8161266392155641935/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/07/til.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/8161266392155641935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/8161266392155641935'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/07/til.html' title='TIL - 文章筆記 看了一篇線性回歸的文章'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-6136331497463262585</id><published>2016-07-26T19:28:00.000+08:00</published><updated>2016-07-26T19:28:24.294+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TypeScript"/><title type='text'>TypeScript 的 tsconfig.json 簡介</title><summary type="text">
tsconfig.json 是 TypeScript 編譯時看的編譯設定檔案，能幫助你指定編譯的 TypeScript 檔案，輸出目錄等工作事項，像我在使用 Atom 編輯器時，若你的資料夾裡面有 .ts 檔案，而且你也有裝 IDE 針對 TypeScript 的一些 package，他會幫你掃掃看有無 tsconfig.json，若沒有會給你提示訊息。


tsconfig.json，這個檔案完全允許空白，預設情況下，專案下的根目錄，以及子目錄下的 ts 都會被編譯。

允許空白不代表不可以沒有這個檔案哦! 會得到這個 error: (這裡使用 npm typescript 的 command-line compiler)
$ tsc
error TS6053: File &#39;tsconfig.json&#39; not found.


你可以自己建立 tsconfig.json 或是透過&amp;</summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/6136331497463262585/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/07/typescript-tsconfigjson.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/6136331497463262585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/6136331497463262585'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/07/typescript-tsconfigjson.html' title='TypeScript 的 tsconfig.json 簡介'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6966960206198868165.post-2957894575267525904</id><published>2016-07-25T23:36:00.001+08:00</published><updated>2016-07-28T15:23:47.212+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TypeScript"/><title type='text'>TypeScript 簡介</title><summary type="text">
TypeScript 是一個 JavaScript 型別化的超集 (“typed superset”)，講『超集』兩字，要是沒有 google 我自己也都無法理解...，這裡有百度的解釋，若用那個網址的解釋圖來理解第一句話，大概是這個樣子: (BTW 我真的很認真在校正這一段，如果有畫錯請告訴我 QQ，我個人以前念書的時候就很沒自信看什麼子集, 超集...)





換句話說，TypeScript 可以用的東西，JavaScript 不一定會有，但 JavaScript 可以用的，TypeScript 也可以用。另外 TypeScript 也... : (以目前到 1.8的版本來說)

支援最新的 ECMAScript 標準.
可以把 TypeScript 轉換為 ES3, ES5, ES6, 也可以 Enables experimental support for ES7 </summary><link rel='replies' type='application/atom+xml' href='http://yiyingloveart.blogspot.com/feeds/2957894575267525904/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://yiyingloveart.blogspot.com/2016/07/typescript.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/2957894575267525904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6966960206198868165/posts/default/2957894575267525904'/><link rel='alternate' type='text/html' href='http://yiyingloveart.blogspot.com/2016/07/typescript.html' title='TypeScript 簡介'/><author><name>yiyingggg</name><uri>http://www.blogger.com/profile/16556544437749712569</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje4bFqm5Sibj0EoUd1Txw9dpV4Jp56uKykOikX5lgFgs4DGm2kIknukp-Pa0U1NuFF0jvKcNcB5VzFFmoUTti3cXOG2oWnVAySHZVy4SP9KHEBCQ7XC-U3cHj97eoxwqs0zbXOC9tJHTeI/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-07-26+%25E4%25B8%258A%25E5%258D%258812.01.05.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>