虽然我已经导入了materialize。js(v1.0.0)在WordPress中的我的插件中
$pluginpath = dirname (plugin_dir_url( __DIR__ ));
$pluginpath = str_replace(\'\\\\\',\'/\',$pluginpath);
$thepath = $pluginpath . \'/js_libs/materialize.js\';
wp_enqueue_script(\'wpunity_materialize_jslib\', $thepath);
在我的主要职能中
wp_register_script( \'wpunity_materialize_jslib\', plugin_dir_url( __FILE__ ) . \'js_libs/materialize.js\', null, null, false);
我一直在
jQuery(…)。material\\u芯片不是功能
对于此代码
<div id="textarea-collaborators" class="chips-autocomplete"></div>
<script>
jQuery( document ).ready(function() {
jQuery(\'.chips-autocomplete\').material_chip({
secondaryPlaceholder: \'Your collaborator email\',
placeholder: \'Your collaborator email\'
});
});
</script>