注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
function insertButton(){
var buttonCintainer = $('<span aria-disabled="false" class=""></span>')
var button = $('<button onclick="insertPage()" id="insertRandom" style="display: block" type="submit" tabindex="0" aria-disabled="false" value="" class="oo-ui-inputWidget-input oo-ui-buttonElement-button"></button>')
var buttonText = $('<span id="randomPicStartButton" class="oo-ui-labelElement-label">随机本页图片</span>')
buttonText.prependTo(button)
button.prependTo(buttonCintainer)
console.log(buttonCintainer.html())
$('#randContainer').prepend(buttonCintainer)
$("#insertRandom").click(function(){
$.ajax({
url:'https://www.medforest.cn/tools/download/',
dataType:'html',
type:'get',
async:true,
success:function(data){
$("#randContainer").html(data)
},error:function(){
}
})
})
}
insertButton()