So far we only had effects that write something to the external world, we are not yet reading anything from the external world into our app. This lesson shows how we can change the DOM Driver to return a "DOM Source" representing read effects, s…
美术馆案例中,需要将“增加一个img标签,放入大图片”这样一个函数封装,但是在调用的时候需要传参. <script type="text/javascript"> onload = function () { var li = document.getElementsByTagName("li"); //下面封装了imgClick函数,带有一个参数n var imgClick = function (n) { var imgLarge = documen…
var script=document.createElement("script"); script.type="text/javascript"; script.src="https://code.jquery.com/jquery-1.12.4.min.js"; document.getElementsByTagName('head')[0].appendChild(script);…