You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!DOCTYPE html>
< html lang = "zh" xmlns:th = "http://www.thymeleaf.org" >
< head >
< th:block th:include = "include :: header('创建表结构')" / >
< / head >
< body >
< div class = "main-content" >
< label class = "col-sm-6 control-label" > 创建表语句(支持多个建表语句): < / label >
< div class = "col-sm-11 col" >
< textarea class = "form-control" id = "text_create" name = "" placeholder = "请输入文本" rows = "12" type = "text" > < / textarea >
< / div >
< / div >
< th:block th:include = "include :: footer" / >
< script type = "text/javascript" >
var prefix = ctx + "tool/gen" ;
/* 创建表结构 */
function submitHandler ( ) {
var rows = $ ( "#text_create" ) . val ( ) ;
if ( rows . length == 0 ) {
$ . modal . alertWarning ( "请输入建表语句" ) ;
return ;
}
var data = { "sql" : rows } ;
$ . operate . save ( prefix + "/createTable" , data ) ;
}
< / script >
< / body >
< / html >