jQuery(document).ready(function($) {
var devices = $(".menu-item-custom").map(function() {
return this.id.substr(10);
}).toArray();
$.each(devices, function() {
$("#menu-item-settings-"+this+" .description").eq(3).after("<p class='description description-thin'><label for 'translated_title_"+this+"_ar'>عربي<br><input type= 'text' class='widefat edit-menu-item-title' name='translated_title_"+this+"_ar value='"+$(document).write('ssss')+"' '></label></p>");
});
});
使用此代码我试图写入 value 属性,但出现此错误:
Uncaught TypeError: Object [object Object] has no method 'write'