透過JS跨網域存取XML檔
為了一些安全性的因素,通常伺服器會阻擋跨網域的XML存取,當然如果你是該網站開發者,所開發的頁面應該將會被放在被認可的網域中,不會碰到這個問題,但我們在開發前期有可能會不在所屬的網域,這樣就會造成開發上的困難,不過我們可以透過Yahoo所提供的YQL查詢語法來解決這個問題,以下就是相關的說明:
若我們在自己的電腦用以下的語法去存取一個網路上的XML
<script> $(function () { var xmlSource = "http://stanley.cloudlab.tw/crossDomainXML/testXML.xml"; $.ajax({ url: xmlSource, success: function (data) { console.log(data); } }) }) </script>
很可能會出現「No Access Control Allow Origin」的訊息:

但如果套用上YQL之後
<script> $(function(){ var xmlSource = "http://stanley.cloudlab.tw/crossDomainXML/testXML.xml"; var yqlURL = [ "http://query.yahooapis.com/v1/public/yql", "?q=" + encodeURIComponent("select * from xml where url='" + xmlSource + "'"), "&format=xml&callback=?" ].join(""); $.getJSON(yqlURL, function(data){ console.log(data) }); }) </script>

可以看到已經可以抓到XML內容,這樣可以讓我們較為方便的去開發,其他詳細的使用說明可以參考Yahoo YQL Guide。
пин ап казино – пин ап казино зеркало
darknet markets 2025 darknet drug store
пин ап вход: https://pinupkz.life/
Learned something new!
http://generic100mgeasy.com/# Generic100mgEasy
Perena is a cutting-edge blockchain development platform designed to empower decentralized applications (dApps) with scalable and secure solutions. Built for Web3 innovators, Perena blockchain solutions offer seamless integration, high-performance smart contracts, and decentralized infrastructure. Whether you’re building DeFi protocols, NFT marketplaces, or enterprise blockchain applications, Perena provides the tools needed to scale with confidence. https://perena.tech
UnagiSwap is a cutting-edge decentralized exchange (DEX) that provides fast, secure, and transparent crypto trading. Designed for traders looking to swap digital assets efficiently without intermediaries, UnagiSwap offers low fees, deep liquidity, and seamless smart contract execution. Whether you’re a casual trader or a professional investor, UnagiSwap’s non-custodial platform ensures full control over your assets in a decentralized environment. https://unagiswap.org
darknet market links dark web link
darknet drug store dark market onion
darknet links dark web drug marketplace
https://kamagrakopen.pro/# KamagraKopen.pro
best price for viagra 100mg: Cheap Viagra 100mg – buy generic 100mg viagra online
http://generic100mgeasy.com/# Viagra generic over the counter
Tadalafil Easy Buy Tadalafil Easy Buy cheapest cialis
https://generic100mgeasy.shop/# Generic100mgEasy
https://kamagrakopen.pro/# kamagra 100mg kopen
Nucleus Earn is revolutionizing DeFi staking and passive income generation by offering secure, high-yield crypto rewards. With smart contract-powered staking pools, Nucleus Earn allows users to earn rewards effortlessly while maintaining full control over their assets. Whether you’re a beginner or an experienced investor, Nucleus Earn’s decentralized staking platform ensures transparency, security, and optimal returns in the fast-growing world of DeFi. https://nucleusearn.org
https://kamagrakopen.pro/# kamagra pillen kopen
https://kamagrakopen.pro/# kamagra jelly kopen
kamagra gel kopen: Kamagra Kopen Online – Officiele Kamagra van Nederland
kraken официальный сайт – kra32.cc, kra31 at
Generic 100mg Easy: Generic 100mg Easy – buy generic 100mg viagra online
dark market 2025 darknet market
Generic 100mg Easy: Generic 100mg Easy – Generic100mgEasy
http://generic100mgeasy.com/# buy generic 100mg viagra online
darkmarket url darknet markets 2025
dark web sites dark web link
TadalafilEasyBuy.com cialis without a doctor prescription Tadalafil Easy Buy
Kra30.cc – кракен клир, кракен
https://tadalafileasybuy.shop/# cheapest cialis