zoukankan      html  css  js  c++  java
  • 用循环输入多个input


    inte(68116996) 13:39:48
    搞定了
    ゞ永恒ゞ(251328402) 13:40:01
    怎么弄的啊?
    inte(68116996) 13:40:35
    应该是set aa = eval("form1.image"&d)
    inte(68116996) 13:40:40
    少了个form1
    inte(68116996) 13:40:49
    查了一中午
    ゞ永恒ゞ(251328402) 13:41:05
    哦,呵呵
    ゞ永恒ゞ(251328402) 13:41:11
    辛苦了
    inte(68116996) 13:41:25
    脖子都疼了
    ゞ永恒ゞ(251328402) 13:44:24
    你的“&d”是什么意思啊
    inte(68116996) 13:44:42
    变量
    inte(68116996) 13:44:46
    循环变量
    ゞ永恒ゞ(251328402) 13:45:23

    ゞ永恒ゞ(251328402) 13:47:02
    那你“ eval”这个是干什么啊
    inte(68116996) 13:47:19
    设定对象啊
    ゞ永恒ゞ(251328402) 13:47:43
    不懂,他不是一个函数吗?
    inte(68116996) 13:48:51
    可以的
    ゞ永恒ゞ(251328402) 13:54:40
    能把你的代码都发出来吗?让我学习下
    inte(68116996) 13:55:00
    等一下
    ゞ永恒ゞ(251328402) 13:55:12

    inte(68116996) 13:55:20
    <html>
    <script language = vbscript>
     function aaa()
     for i = 0 to 1
     set objimg = eval("image" & i)
    objimg.style.display = ""
    objimg.src= "1.jpg"
    next
    end function
    </script>
    <body>
    <table width=100%>
    <tr>

    <td>
    <img src="" id=image0 style=display:"none"><br>
    <img src="" id=image1 style=display:"none"><br>
    <img src="" id=image2 style=display:"none"><br>
    <img src="" id=image3 style=display:"none"><br>
    <img src="" id=image4 style=display:"none"><br>
    <img src="" id=image5 style=display:"none"><br>
    <img src="" id=image6 style=display:"none"><br>
    <img src="" id=image7 style=display:"none"><br>
    <img src="" id=image8 style=display:"none"><br>
    <img src="" id=image9 style=display:"none"><br>
    <br>
    <a href=vbscript:aaa()>fdsafasf</a>
    </td></tr>
    </body>
    </html>
    inte(68116996) 13:55:51
    这是个很简单的例子,只是介绍eval的用法
    ゞ永恒ゞ(251328402) 13:56:04

    地板上的裂缝(38013534) 13:56:42
        protected override void InitializeCulture()
        {
            if (Request.Cookies["Culture"] == null)
            {
                UICulture = "zh-cn";
                Culture = "zh-cn";
                Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("zh-cn");
                Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-cn");
            }
            else
            {
                string sLanguage = Request.Cookies["Culture"]["Language"];
                UICulture = sLanguage;
                Culture = sLanguage;
                Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(sLanguage);
                Thread.CurrentThread.CurrentUICulture = new CultureInfo(sLanguage);
            }
            base.InitializeCulture();

    哪位能不能帮看下这段代码的意思。
    地板上的裂缝(38013534) 13:57:25
    好像是用来切换语言的,但是Thread类我不了解。
    ゞ永恒ゞ(251328402) 14:01:09
    vbscript:aaa() 可以这样用的啊
    一年零十一个月(615299708) 14:01:29
     可以的
    ゞ永恒ゞ(251328402) 14:02:31
    inte  能给解释下你的代码吗?运行有什么效果的
    inte(68116996) 14:15:19
    你运行一下就可以了
    ゞ永恒ゞ(251328402) 14:15:59
    我运行了,没有反应

  • 相关阅读:
    6-MySQL-Ubuntu-操作数据表的基本操作(一)
    5-MySQL-Ubuntu-操作数据库的基本操作语句
    11-Ubuntu-根目录下各目录的功能详细介绍
    4-Ubuntu-启动/关闭/重启mysql服务
    3-Windows-CMD启动mysql服务-连接本地mysql服务-连接远程mysql服务
    2-Ubuntu命令安装mysql服务器和客户端及安装后的简单验证操作
    1-Navicat无法远程连接Ubuntu上的MySQL(已解决)
    10-python基础—索引与切片总结
    Useful Things To Know About Machine Learning (机器学习中一些有用的知识)
    How to Use the TimeDistributed Layer for Long Short-Term Memory Networks in Python 译文
  • 原文地址:https://www.cnblogs.com/gfwei/p/526261.html
Copyright © 2011-2022 走看看