搜尋
首頁後端開發php教程前端跨域解決方案分享

前端跨域解決方案分享

Mar 22, 2018 am 10:39 AM
分享前端解決方案

跨域是指一個網域下的文件或腳本試圖去請求另一個網域下的資源,這裡跨域是廣義的。本文主要和大家分享前端跨域解決方案希望能幫助大家。

廣義的跨域:

1.) 資源跳轉: A連結、重定向、表單提交
2.) 資源嵌入: 、<script> 、<img src="/static/imghwm/default1.png" data-src="http://child.domain.com/b.html" class="lazy" alt="前端跨域解決方案分享" >、<frame>等dom標籤,還有樣式中background:url()、@font-face()等文件外鏈<br/>3.) 腳本請求: js發起的ajax請求、dom和js物件的跨域操作等</script>

其實我們通常所說的跨域是狹義的,是由瀏覽器同源策略限制的一類請求場景。

什麼是同源策略?
同源策略/SOP(Same origin policy)是一種約定,由Netscape公司1995年引入瀏覽器,它是瀏覽器最核心也最基本的安全功能,如果缺少了同源策略,瀏覽器容易受到XSS、CSFR等攻擊。所謂同源是指"協定+網域+連接埠"三者相同,即便兩個不同的網域指向同一個ip位址,也非同源。

同源策略限制以下幾個行為:

1.) Cookie、LocalStorage 和 IndexDB 无法读取2.) DOM 和 Js对象无法获得3.) AJAX 请求不能发送

常見跨域場景

URL                                      
说明                    
是否允许通信http://www.domain.com/a.jshttp://www.domain.com/b.js         
同一域名,不同文件或路径           
允许http://www.domain.com/lab/c.jshttp://www.domain.com:8000/a.jshttp://www.domain.com/b.js         
同一域名,不同端口                不允许 http://www.domain.com/a.jshttps://www.domain.com/b.js        
同一域名,不同协议                不允许 http://www.domain.com/a.jshttp://192.168.4.12/b.js           
域名和域名对应相同ip              不允许 http://www.domain.com/a.jshttp://x.domain.com/b.js           
主域相同,子域不同                不允许http://domain.com/c.js http://www.domain1.com/a.jshttp://www.domain2.com/b.js        
不同域名                         
不允许

跨域解決方案

1、 透過jsonp跨域
2、 document.domain + iframe跨域
3、 location.hash + iframe
4、 window.name + iframe跨域
5、 postMessage跨域
6、 跨域資源共享(CORS)
7、 nginx代理跨域
8、 nodejs中間件代理跨域
9、 WebSocket協定跨域

一、 透過jsonp跨域

通常為了減輕web伺服器的負載,我們把js、css,img等靜態資源分離到另一台獨立網域的伺服器上,在html頁面中再透過對應的標籤從不同網域下載入靜態資源,而被瀏覽器允許,基於此原理,我們可以透過動態建立script,再請求一個帶參網址實現跨域通訊。

1.)原生實作:

 <script>
    var script = document.createElement(&#39;script&#39;);
    script.type = &#39;text/javascript&#39;;    // 传参并指定回调执行函数为onBack
    script.src = &#39;http://www.domain2.com:8080/login?user=admin&callback=onBack&#39;;    document.head.appendChild(script);    // 回调执行函数
    function onBack(res) {
        alert(JSON.stringify(res));
    } </script>

服務端傳回如下(返回時即執行全域函數):

onBack({"status": true, "user": "admin"})

2.)jquery ajax:

$.ajax({    url: &#39;http://www.domain2.com:8080/login&#39;,    type: &#39;get&#39;,    dataType: &#39;jsonp&#39;,  // 请求方式为jsonp
    jsonpCallback: "onBack",    // 自定义回调函数名
    data: {}
});

3.)vue.js:

this.$http.jsonp(&#39;http://www.domain2.com:8080/login&#39;, {    params: {},    jsonp: &#39;onBack&#39;}).then((res) => {    console.log(res); 
})

後端node.js程式碼範例:

var querystring = require(&#39;querystring&#39;);var http = require(&#39;http&#39;);var server = http.createServer();

server.on(&#39;request&#39;, function(req, res) {    var params = qs.parse(req.url.split(&#39;?&#39;)[1]);    var fn = params.callback;    // jsonp返回设置
    res.writeHead(200, { &#39;Content-Type&#39;: &#39;text/javascript&#39; });
    res.write(fn + &#39;(&#39; + JSON.stringify(params) + &#39;)&#39;);

    res.end();
});

server.listen(&#39;8080&#39;);console.log(&#39;Server is running at port 8080...&#39;);

jsonp缺點:只能實作get一種請求。

二、document.domain + iframe跨域

此方案僅限主域相同,子域不同的跨域套用場景。

實作原理:兩個頁面都透過js強制設定document.domain為基礎主域,就實作了同域。

1.)父視窗:(http://www.domain.com/a.html)

<iframe id="iframe" ></iframe><script>
    document.domain = &#39;domain.com&#39;;    var user = &#39;admin&#39;;</script>

2.)子視窗:(http://child.domain.com /b.html)

<script>
    document.domain = &#39;domain.com&#39;;    // 获取父窗口中变量
    alert(&#39;get js data from parent ---> &#39; + window.parent.user);</script>

三、 location.hash + iframe跨域

實作原理: a欲與b跨域相互通信,透過中間頁c來實現。 三個頁面,不同域之間利用iframe的location.hash傳值,相同域之間直接js存取來通訊。

具體實作:A域:a.html -> B域:b.html -> A域:c.html,a與b不同域只能透過hash值單向通訊,b與c也不同域也只能單向通信,但c與a同域,所以c可透過parent.parent存取a頁面所有物件。

1.)a.html:(http://www.domain1.com/a.html)

<iframe id="iframe" src="http://www.domain2.com/b.html" style="display:none;"></iframe><script>
    var iframe = document.getElementById(&#39;iframe&#39;);    // 向b.html传hash值
    setTimeout(function() {
        iframe.src = iframe.src + &#39;#user=admin&#39;;
    }, 1000);    
    // 开放给同域c.html的回调方法
    function onCallback(res) {
        alert(&#39;data from c.html ---> &#39; + res);
    }</script>

2.)b.html:(http://www.domain2 .com/b.html)

<iframe id="iframe" src="http://www.domain1.com/c.html" style="display:none;"></iframe><script>
    var iframe = document.getElementById(&#39;iframe&#39;);    // 监听a.html传来的hash值,再传给c.html
    window.onhashchange = function () {
        iframe.src = iframe.src + location.hash;
    };</script>

3.)c.html:(http://www.domain1.com/c.html)

<script>
    // 监听b.html传来的hash值
    window.onhashchange = function () {        // 再通过操作同域a.html的js回调,将结果传回
        window.parent.parent.onCallback(&#39;hello: &#39; + location.hash.replace(&#39;#user=&#39;, &#39;&#39;));
    };</script>

四、 window. name + iframe跨域

window.name屬性的獨特之處:name值在不同的頁面(甚至不同網域)載入後依舊存在,並且可以支援非常長的name 值(2MB) 。

1.)a.html:(http://www.domain1.com/a.html)

var proxy = function(url, callback) {    var state = 0;    var iframe = document.createElement(&#39;iframe&#39;);    // 加载跨域页面
    iframe.src = url;    // onload事件会触发2次,第1次加载跨域页,并留存数据于window.name
    iframe.onload = function() {        if (state === 1) {            // 第2次onload(同域proxy页)成功后,读取同域window.name中数据
            callback(iframe.contentWindow.name);
            destoryFrame();

        } else if (state === 0) {            // 第1次onload(跨域页)成功后,切换到同域代理页面
            iframe.contentWindow.location = &#39;http://www.domain1.com/proxy.html&#39;;
            state = 1;
        }
    };    document.body.appendChild(iframe);    // 获取数据以后销毁这个iframe,释放内存;这也保证了安全(不被其他域frame js访问)
    function destoryFrame() {
        iframe.contentWindow.document.write(&#39;&#39;);
        iframe.contentWindow.close();        document.body.removeChild(iframe);
    }
};// 请求跨域b页面数据proxy(&#39;http://www.domain2.com/b.html&#39;, function(data){
    alert(data);
});

2.)proxy.html:(http://www.domain1 .com/proxy....
中間代理頁,與a.html同域,內容為空即可。 com/b.html)

<script>
    window.name = &#39;This is domain2 data!&#39;;</script>

總結:透過iframe的src屬性由外域轉向本地域,跨域資料即由iframe的window.name從外域傳遞到本地域。這個就巧妙地繞過了瀏覽器的跨域存取限制,但同時它又是安全操作。

五、 postMessage跨域

postMessage是HTML5 XMLHttpRequest Level 2中的API,且是少數可以跨網域操作的window屬性之一,它可用於解決以下方面的問題:

a.) 頁面和其打開的新視窗的資料傳遞

b.) 多視窗之間訊息傳遞
c.) 頁面與嵌套的iframe訊息傳遞
d.) 上面三個場景的跨域資料傳遞

用法:postMessage(data,origin)方法接受兩個參數

data: html5規範支援任意基本類型或可複製的對象,但部分瀏覽器只支援字串,所以傳參時最好用JSON.stringify()序列化。

origin: 協定+主機+連接埠號,也可以設定為"*",表示可以傳遞給任意窗口,如果要指定和目前視窗同源的話設定為"/"。

1.)a.html:(http://www.domain1.com/a.html)

<iframe id="iframe" src="http://www.domain2.com/b.html" style="display:none;"></iframe><script>       
    var iframe = document.getElementById(&#39;iframe&#39;);
    iframe.onload = function() {        var data = {            name: &#39;aym&#39;
        };        // 向domain2传送跨域数据
        iframe.contentWindow.postMessage(JSON.stringify(data), &#39;http://www.domain2.com&#39;);
    };    // 接受domain2返回数据
    window.addEventListener(&#39;message&#39;, function(e) {
        alert(&#39;data from domain2 ---> &#39; + e.data);
    }, false);</script>

2.)b.html:(http://www.domain2 .com/b.html)

<script>
    // 接收domain1的数据
    window.addEventListener(&#39;message&#39;, function(e) {
        alert(&#39;data from domain1 ---> &#39; + e.data);        var data = JSON.parse(e.data);        if (data) {
            data.number = 16;            // 处理后再发回domain1
            window.parent.postMessage(JSON.stringify(data), &#39;http://www.domain1.com&#39;);
        }
    }, false);</script>

六、 跨域资源共享(CORS)

普通跨域请求:只服务端设置Access-Control-Allow-Origin即可,前端无须设置,若要带cookie请求:前后端都需要设置。

需注意的是:由于同源策略的限制,所读取的cookie为跨域请求接口所在域的cookie,而非当前页。如果想实现当前页cookie的写入,可参考下文:七、nginx反向代理中设置proxy_cookie_domain 和 八、NodeJs中间件代理中cookieDomainRewrite参数的设置。

目前,所有浏览器都支持该功能(IE8+:IE8/9需要使用XDomainRequest对象来支持CORS)),CORS也已经成为主流的跨域解决方案。

1、 前端设置:

1.)原生ajax

// 前端设置是否带cookiexhr.withCredentials = true;

示例代码:

var xhr = new XMLHttpRequest(); // IE8/9需用window.XDomainRequest兼容// 前端设置是否带cookiexhr.withCredentials = true;

xhr.open(&#39;post&#39;, &#39;http://www.domain2.com:8080/login&#39;, true);
xhr.setRequestHeader(&#39;Content-Type&#39;, &#39;application/x-www-form-urlencoded&#39;);
xhr.send(&#39;user=admin&#39;);

xhr.onreadystatechange = function() {    if (xhr.readyState == 4 && xhr.status == 200) {
        alert(xhr.responseText);
    }
};

2.)jQuery ajax

$.ajax({
    ...
   xhrFields: {
       withCredentials: true    // 前端设置是否带cookie   },
   crossDomain: true,   // 会让请求头中包含跨域的额外信息,但不会含cookie
    ...
});

3.)vue框架
在vue-resource封装的ajax组件中加入以下代码:

Vue.http.options.credentials = true
2、 服务端设置:

若后端设置成功,前端浏览器控制台则不会出现跨域报错信息,反之,说明没设成功。

1.)Java后台:

/*
 * 导入包:import javax.servlet.http.HttpServletResponse;
 * 接口参数中定义:HttpServletResponse response
 */response.setHeader("Access-Control-Allow-Origin", "http://www.domain1.com");  // 若有端口需写全(协议+域名+端口)response.setHeader("Access-Control-Allow-Credentials", "true");

2.)Nodejs后台示例:

var http = require(&#39;http&#39;);var server = http.createServer();var qs = require(&#39;querystring&#39;);

server.on(&#39;request&#39;, function(req, res) {    var postData = &#39;&#39;;    // 数据块接收中
    req.addListener(&#39;data&#39;, function(chunk) {
        postData += chunk;
    });    // 数据接收完毕
    req.addListener(&#39;end&#39;, function() {
        postData = qs.parse(postData);        // 跨域后台设置
        res.writeHead(200, {            &#39;Access-Control-Allow-Credentials&#39;: &#39;true&#39;,     // 后端允许发送Cookie
            &#39;Access-Control-Allow-Origin&#39;: &#39;http://www.domain1.com&#39;,    // 允许访问的域(协议+域名+端口)
            &#39;Set-Cookie&#39;: &#39;l=a123456;Path=/;Domain=www.domain2.com;HttpOnly&#39;   // HttpOnly:脚本无法读取cookie
        });

        res.write(JSON.stringify(postData));
        res.end();
    });
});

server.listen(&#39;8080&#39;);console.log(&#39;Server is running at port 8080...&#39;);

七、 nginx代理跨域

1、 nginx配置解决iconfont跨域

浏览器跨域访问js、css、img等常规静态资源被同源策略许可,但iconfont字体文件(eot|otf|ttf|woff|svg)例外,此时可在nginx的静态资源服务器中加入以下配置。

location / {
  add_header Access-Control-Allow-Origin *;
}
2、 nginx反向代理接口跨域

跨域原理: 同源策略是浏览器的安全策略,不是HTTP协议的一部分。服务器端调用HTTP接口只是使用HTTP协议,不会执行JS脚本,不需要同源策略,也就不存在跨越问题。

实现思路:通过nginx配置一个代理服务器(域名与domain1相同,端口不同)做跳板机,反向代理访问domain2接口,并且可以顺便修改cookie中domain信息,方便当前域cookie写入,实现跨域登录。

nginx具体配置:

#proxy服务器server {    listen       81;    server_name  www.domain1.com;    location / {        proxy_pass   http://www.domain2.com:8080;  #反向代理
        proxy_cookie_domain www.domain2.com www.domain1.com; #修改cookie里域名
        index  index.html index.htm;        # 当用webpack-dev-server等中间件代理接口访问nignx时,此时无浏览器参与,故没有同源限制,下面的跨域配置可不启用
        add_header Access-Control-Allow-Origin http://www.domain1.com;  #当前端只跨域不带cookie时,可为*
        add_header Access-Control-Allow-Credentials true;
    }
}

1.) 前端代码示例:

var xhr = new XMLHttpRequest();// 前端开关:浏览器是否读写cookiexhr.withCredentials = true;// 访问nginx中的代理服务器xhr.open(&#39;get&#39;, &#39;http://www.domain1.com:81/?user=admin&#39;, true);
xhr.send();

2.) Nodejs后台示例:

var http = require(&#39;http&#39;);var server = http.createServer();var qs = require(&#39;querystring&#39;);

server.on(&#39;request&#39;, function(req, res) {    var params = qs.parse(req.url.substring(2));    // 向前台写cookie
    res.writeHead(200, {        &#39;Set-Cookie&#39;: &#39;l=a123456;Path=/;Domain=www.domain2.com;HttpOnly&#39;   // HttpOnly:脚本无法读取
    });

    res.write(JSON.stringify(params));
    res.end();
});

server.listen(&#39;8080&#39;);console.log(&#39;Server is running at port 8080...&#39;);

八、 Nodejs中间件代理跨域

node中间件实现跨域代理,原理大致与nginx相同,都是通过启一个代理服务器,实现数据的转发,也可以通过设置cookieDomainRewrite参数修改响应头中cookie中域名,实现当前域的cookie写入,方便接口登录认证。

1、 非vue框架的跨域(2次跨域)

利用node + express + http-proxy-middleware搭建一个proxy服务器。

1.)前端代码示例:

var xhr = new XMLHttpRequest();// 前端开关:浏览器是否读写cookiexhr.withCredentials = true;// 访问http-proxy-middleware代理服务器xhr.open(&#39;get&#39;, &#39;http://www.domain1.com:3000/login?user=admin&#39;, true);
xhr.send();

2.)中间件服务器:

var express = require(&#39;express&#39;);var proxy = require(&#39;http-proxy-middleware&#39;);var app = express();

app.use(&#39;/&#39;, proxy({    // 代理跨域目标接口
    target: &#39;http://www.domain2.com:8080&#39;,    changeOrigin: true,    // 修改响应头信息,实现跨域并允许带cookie
    onProxyRes: function(proxyRes, req, res) {
        res.header(&#39;Access-Control-Allow-Origin&#39;, &#39;http://www.domain1.com&#39;);
        res.header(&#39;Access-Control-Allow-Credentials&#39;, &#39;true&#39;);
    },    // 修改响应信息中的cookie域名
    cookieDomainRewrite: &#39;www.domain1.com&#39;  // 可以为false,表示不修改}));

app.listen(3000);console.log(&#39;Proxy server is listen at port 3000...&#39;);

3.)Nodejs后台同(六:nginx)

2、 vue框架的跨域(1次跨域)

利用node + webpack + webpack-dev-server代理接口跨域。在开发环境下,由于vue渲染服务和接口代理服务都是webpack-dev-server同一个,所以页面与代理接口之间不再跨域,无须设置headers跨域信息了。

webpack.config.js部分配置:

module.exports = {    entry: {},    module: {},
    ...
    devServer: {        historyApiFallback: true,        proxy: [{            context: &#39;/login&#39;,            target: &#39;http://www.domain2.com:8080&#39;,  // 代理跨域目标接口
            changeOrigin: true,            secure: false,  // 当代理某些https服务报错时用
            cookieDomainRewrite: &#39;www.domain1.com&#39;  // 可以为false,表示不修改
        }],        noInfo: true
    }
}

九、 WebSocket协议跨域

WebSocket protocol是HTML5一种新的协议。它实现了浏览器与服务器全双工通信,同时允许跨域通讯,是server push技术的一种很好的实现。
原生WebSocket API使用起来不太方便,我们使用Socket.io,它很好地封装了webSocket接口,提供了更简单、灵活的接口,也对不支持webSocket的浏览器提供了向下兼容。

1.)前端代码:

<p>user input:<input type="text"></p><script src="./socket.io.js"></script><script>var socket = io(&#39;http://www.domain2.com:8080&#39;);// 连接成功处理socket.on(&#39;connect&#39;, function() {    // 监听服务端消息
    socket.on(&#39;message&#39;, function(msg) {        console.log(&#39;data from server: ---> &#39; + msg); 
    });    // 监听服务端关闭
    socket.on(&#39;disconnect&#39;, function() { 
        console.log(&#39;Server socket has closed.&#39;); 
    });
});document.getElementsByTagName(&#39;input&#39;)[0].onblur = function() {
    socket.send(this.value);
};</script>

2.)Nodejs socket后台:

var http = require(&#39;http&#39;);var socket = require(&#39;socket.io&#39;);// 启http服务var server = http.createServer(function(req, res) {
    res.writeHead(200, {        &#39;Content-type&#39;: &#39;text/html&#39;
    });
    res.end();
});

server.listen(&#39;8080&#39;);console.log(&#39;Server is running at port 8080...&#39;);// 监听socket连接socket.listen(server).on(&#39;connection&#39;, function(client) {    // 接收信息
    client.on(&#39;message&#39;, function(msg) {
        client.send(&#39;hello:&#39; + msg);        console.log(&#39;data from client: ---> &#39; + msg);
    });    // 断开处理
    client.on(&#39;disconnect&#39;, function() {        console.log(&#39;Client socket has closed.&#39;); 
    });
});

以上是前端跨域解決方案分享的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
您如何防止與會議有關的跨站點腳本(XSS)攻擊?您如何防止與會議有關的跨站點腳本(XSS)攻擊?Apr 23, 2025 am 12:16 AM

要保護應用免受與會話相關的XSS攻擊,需採取以下措施:1.設置HttpOnly和Secure標誌保護會話cookie。 2.對所有用戶輸入進行輸出編碼。 3.實施內容安全策略(CSP)限制腳本來源。通過這些策略,可以有效防護會話相關的XSS攻擊,確保用戶數據安全。

您如何優化PHP會話性能?您如何優化PHP會話性能?Apr 23, 2025 am 12:13 AM

优化PHP会话性能的方法包括:1.延迟会话启动,2.使用数据库存储会话,3.压缩会话数据,4.管理会话生命周期,5.实现会话共享。这些策略能显著提升应用在高并发环境下的效率。

什麼是session.gc_maxlifetime配置設置?什麼是session.gc_maxlifetime配置設置?Apr 23, 2025 am 12:10 AM

theSession.gc_maxlifetimesettinginphpdeterminesthelifespanofsessiondata,setInSeconds.1)它'sconfiguredinphp.iniorviaini_set().2)abalanceisesneededeededeedeedeededto toavoidperformance andunununununexpectedLogOgouts.3)

您如何在PHP中配置會話名?您如何在PHP中配置會話名?Apr 23, 2025 am 12:08 AM

在PHP中,可以使用session_name()函數配置會話名稱。具體步驟如下:1.使用session_name()函數設置會話名稱,例如session_name("my_session")。 2.在設置會話名稱後,調用session_start()啟動會話。配置會話名稱可以避免多應用間的會話數據衝突,並增強安全性,但需注意會話名稱的唯一性、安全性、長度和設置時機。

您應該多久再生一次會話ID?您應該多久再生一次會話ID?Apr 23, 2025 am 12:03 AM

會話ID應在登錄時、敏感操作前和每30分鐘定期重新生成。 1.登錄時重新生成會話ID可防會話固定攻擊。 2.敏感操作前重新生成提高安全性。 3.定期重新生成降低長期利用風險,但需權衡用戶體驗。

如何在PHP中設置會話cookie參數?如何在PHP中設置會話cookie參數?Apr 22, 2025 pm 05:33 PM

在PHP中設置會話cookie參數可以通過session_set_cookie_params()函數實現。 1)使用該函數設置參數,如過期時間、路徑、域名、安全標誌等;2)調用session_start()使參數生效;3)根據需求動態調整參數,如用戶登錄狀態;4)注意設置secure和httponly標誌以提升安全性。

在PHP中使用會議的主要目的是什麼?在PHP中使用會議的主要目的是什麼?Apr 22, 2025 pm 05:25 PM

在PHP中使用會話的主要目的是維護用戶在不同頁面之間的狀態。 1)會話通過session_start()函數啟動,創建唯一會話ID並存儲在用戶cookie中。 2)會話數據保存在服務器上,允許在不同請求間傳遞數據,如登錄狀態和購物車內容。

您如何在子域中分享會議?您如何在子域中分享會議?Apr 22, 2025 pm 05:21 PM

如何在子域名間共享會話?通過設置通用域名的會話cookie實現。 1.在服務器端設置會話cookie的域為.example.com。 2.選擇合適的會話存儲方式,如內存、數據庫或分佈式緩存。 3.通過cookie傳遞會話ID,服務器根據ID檢索和更新會話數據。

See all articles

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

SublimeText3 Linux新版

SublimeText3 Linux新版

SublimeText3 Linux最新版

Atom編輯器mac版下載

Atom編輯器mac版下載

最受歡迎的的開源編輯器

SecLists

SecLists

SecLists是最終安全測試人員的伙伴。它是一個包含各種類型清單的集合,這些清單在安全評估過程中經常使用,而且都在一個地方。 SecLists透過方便地提供安全測試人員可能需要的所有列表,幫助提高安全測試的效率和生產力。清單類型包括使用者名稱、密碼、URL、模糊測試有效載荷、敏感資料模式、Web shell等等。測試人員只需將此儲存庫拉到新的測試機上,他就可以存取所需的每種類型的清單。

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)