跨域读取js变色

<button id="go">Run</button>
<div class="block" style="400px; height:300px"></div>
<script type="text/javascript">
//跨域读取js变色
    $.getScript("http://dev.jquery.com/view/trunk/plugins/color/jquery.color.js",
    function() {
    $("#go").click(function() {
    $(".block").animate({ backgroundColor: 'pink' }, 1000)
       .animate({ backgroundColor: 'blue' }, 1000);
    });
       });
</script>
原文地址:https://www.cnblogs.com/ninepts/p/1879500.html