更多操作
(建立内容为“function insertButton(){ var buttonCintainer = $('<span aria-disabled="false" class="headButton oo-ui-widget oo-ui-widget-enabled oo-ui-inputWidget oo-ui-butt…”的新页面) |
无编辑摘要 |
||
第9行: | 第9行: | ||
$('#randContainer').prepend(buttonCintainer) | $('#randContainer').prepend(buttonCintainer) | ||
} | } | ||
insertButton() |
2022年1月9日 (日) 02:16的版本
function insertButton(){
var buttonCintainer = $('<span aria-disabled="false" class="headButton oo-ui-widget oo-ui-widget-enabled oo-ui-inputWidget oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-flaggedElement-primary oo-ui-flaggedElement-progressive oo-ui-buttonInputWidget"></span>')
var button = $('<button 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)
}
insertButton()