<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>JavaScript on Lin's Blog</title><link>https://coder.tw/categories/javascript/</link><description>Recent content in JavaScript on Lin's Blog</description><generator>Hugo</generator><language>zh-tw</language><lastBuildDate>Sat, 10 Dec 2016 15:19:09 +0000</lastBuildDate><atom:link href="https://coder.tw/categories/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>使用 JavaScript 操作剪貼簿複製文字</title><link>https://coder.tw/posts/javascript-copy-to-clipboard/</link><pubDate>Sat, 10 Dec 2016 15:19:09 +0000</pubDate><guid>https://coder.tw/posts/javascript-copy-to-clipboard/</guid><description>&lt;p&gt;在過去想要用 JavaScript 操作剪貼簿進行複製、貼上的動作十分麻煩，之前在開發 NTUST.ME 臺科短網址時，為了方便大家複製縮短後的網址，特別研究了 JavaScript 對剪貼簿操作的 API，發現在較新版的瀏覽器，其實有一個 execCommand 可以進行許多方便的文字操作，例如複製、全選等等，以下就讓我來介紹一下吧！&lt;/p&gt;</description></item><item><title>【JavaScript】encodeURIComponent 編碼網址用的函式</title><link>https://coder.tw/posts/javascript-encodeuricomponent/</link><pubDate>Wed, 22 Jul 2009 14:49:56 +0000</pubDate><guid>https://coder.tw/posts/javascript-encodeuricomponent/</guid><description>&lt;p&gt;當你在使用JavaScript來做一些GET指令時你應該經常會發現一個問題就是JavaScript他會要求你把網址編碼吧,遇到這種需要編碼網址才能使用的函式你可以使用encodeURIComponent來幫網址進行編碼&lt;/p&gt;
&lt;p&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2009/07/2009-07-22_144915.jpg"&gt;&lt;img class="alignnone size-full wp-image-1666" title="2009-07-22_144915" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2009/07/2009-07-22_144915.jpg" alt="2009-07-22_144915" width="397" height="134" /&gt;&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>