这里是我看到的一个示例,我认为php.ini有类似的东西,但我无法在php.ini中找到任何东西。然后我试着在google中查看它是否与javascript有关但是没有结果<#或<#=。
<script type="text/html" id="tmpl-nf-wh-args">
<#
if ( 'new' == object_id ) {
var x = jQuery( '.new-wh-args' ).length;
var key_name = 'wh_args[new][' + x + '][key]';
var field_name = 'wh_args[new][' + x + '][field]';
var class_name = 'new-wh-args';
} else {
var key_name = 'wh_args[' + object_id + '][key]';
var field_name = 'wh_args[' + object_id + '][field]';
var class_name = '';
}
#>
<div class="single-wh-args nf-wh-args">
<span style="float:left">
<a href="#" class="nf-wh-args-delete remove" style=""><div class="dashicons dashicons-dismiss"></div></a>
<?php _e( 'Key', 'ninja-forms-wh' ); ?> <input type="text" name="<#= key_name #>" value="<#= args.key #>" placeholder="Key" class="nf-wh-args-key <#= class_name #>">
</span>
<input name="<#= field_name #>" type="text" id="" value="<#= args.field #>" class="nf-tokenize" placeholder="Field" data-key="wh_args_<#=object_id #>" data-type="all" />
</div>
</script>