首页 >web前端 >js教程 >JS实现商品倒计时实现代码_javascript技巧

JS实现商品倒计时实现代码_javascript技巧

WBOY
WBOY原创
2016-05-16 17:34:531061浏览

复制代码 代码如下:


           //实现商品倒计时开始

            DataSet dataset = new DataSet();
            string connStr = ConfigurationManager.ConnectionStrings["sqlservercon"].ConnectionString;
            using (SqlConnection conn = new SqlConnection(connStr))
            {
                conn.Open();
                using (SqlCommand cmd = conn.CreateCommand())
                {
                    cmd.CommandText = "Select * from T_buondTimeBuy";
                    SqlDataAdapter adapter = new SqlDataAdapter(cmd);
                    adapter.Fill(dataset);
                }
            }

            DataTable table = dataset.Tables[0];
            for (int i = 0; i             {
                DataRow row = table.Rows[i];
                 time[i]= (row["time"]).ToString();
            }

       
            timeD.Value = time[1];

            //实现商品倒计时结束

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn