在sql中有没有与我的表联系? [英] is there any missing to contact with my table in sql?

查看:68
本文介绍了在sql中有没有与我的表联系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 @ {
ViewBag.Title =Getdata;
< script < span class =code-attribute> src = 〜/ Scripts / jquery-2.1.3。 min.js > < / script >
< script >

$( document )。ready( function (){
$( #btn)。点击( function (){
$( #text1)。val( );

$ .get( / country / Create,{}, function (data){
$ .each(data, function (index,row){
$( #tb1)。append( < table>< tbody>< tr>< td> + row.ID + < / td>< td> + row.Name + < / td>< / tr>< / tbody>< / table>);
});
});
});
});
< / script >
}


国家/地区:< 输入 type = text id = text1 / >
< 输入 类型 = 按钮 = 添加 id = btn / >

解决方案

document )。ready( function (){


#btn)。click( function (){


#text1)。val( );

@{
    ViewBag.Title = "Getdata";
    <script src="~/Scripts/jquery-2.1.3.min.js"></script>
    <script>

        $(document).ready(function () {
            $("#btn").click(function () {
                $("#text1").val("");

                $.get("/country/Create", {}, function (data) {
                    $.each(data, function (index, row) {
                        $("#tb1").append("<table><tbody><tr><td>" + row.ID + "</td><td>" + row.Name + "</td></tr></tbody></table>");
                    });
                });
            });
        });
    </script>
}


country:<input type="text" id="text1" />
<input type="button" value="Add" id="btn" />

解决方案

(document).ready(function () {


("#btn").click(function () {


("#text1").val("");


这篇关于在sql中有没有与我的表联系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆