我在wordpress的single.php页面中显示此代码,点击外部网站上的def lapOp(u):
lap = np.empty_like(u)
# this bit is equivalent to (4.0/3)*np.roll(u,1,axis=0)
lap[1:,:] = (4.0/3.0)*u[:-1,:]
lap[0,:] = (4.0/3.0)*u[-1,:]
# add (4.0/3)*np.roll(u,-1,axis=0)
lap[:-1,:] += (4.0/3.0)*u[1:,:]
lap[-1,:] += (4.0/3.0)*u[0,:]
# add (4.0/3)*np.roll(u,1,axis=1)
lap[:,1:] += (4.0/3.0)*u[:,:-1]
lap[:,0] += (4.0/3.0)*u[:,-1]
# the remainder is left as a rather tedious exercise for the reader
return lap/hh
弹出窗口。
<iframe>
我只想在“Click_and_see_site”
上按下时才加载iframe答案 0 :(得分:2)
试试这个:
$(".lbp-inline-link-1").on('click',function (){
$("#MyId").prop('src','<?php echo $url_site; ?>');
});
同时删除SRC:
<iframe id="MyId" src="about:blank" ...