微件:PlantInfo:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第33行: | 第33行: | ||
var pic1 = "<!--{$pic|escape:'javascript'}-->"; | var pic1 = "<!--{$pic|escape:'javascript'}-->"; | ||
var pic2 = "<!--{$pic2|escape:'javascript'}-->"; | var pic2 = "<!--{$pic2|escape:'javascript'}-->"; | ||
$.ajax( { | $.ajax( { | ||
url: mw.util.wikiScript( 'api' ), | url: mw.util.wikiScript( 'api' ), | ||
data: { | data: { | ||
action: 'parse', | action: 'parse', | ||
text: '<tabber>1技能= | text: '<tabber>1技能=1|-|2技能=2</tabber>', | ||
contentmodel: 'wikitext', | contentmodel: 'wikitext', | ||
format: 'json' | format: 'json' | ||
第47行: | 第46行: | ||
if ( data && data.parse && data.parse.text ) { | if ( data && data.parse && data.parse.text ) { | ||
var html = data.parse.text['*']; | var html = data.parse.text['*']; | ||
$( '#tabberContainer' ).html( html ); | $( '#tabberContainer' ).html( html ); | ||
} | } | ||
}, | }, | ||
error: function( xhr ) { | error: function( xhr ) { | ||
console.error(xhr); | console.error(xhr); | ||
} | } |