Mr丶Nee 发表于 2016-4-1 10:21


不知道说什么轻轻飘过

jianx 发表于 2016-4-13 17:14

using UnityEngine;
using System.Collections;

public class insert : MonoBehaviour {
        private string url="http://localhost:50163/WebSite2/Default.aspx";//本地地址
        private string txt_Name="";
        private string txt_Score="";
        private string txt_Message="";
        // Use this for initialization
        void Start () {
        
        }
        
        // Update is called once per frame
        void Update () {
        
        }
        void OnGUI()
        {
                txt_Name=GUI.TextField(new Rect(10,10,100,30),txt_Name);
                txt_Score=GUI.TextField(new Rect(10,50,100,30),txt_Score);
                txt_Message=GUI.TextField(new Rect(10,90,100,30),txt_Message);
                if(GUI.Button(new Rect(10,130,100,30),"submit"))
                {
                        StartCoroutine(InsertMethod());
                }
        }
        IEnumerator InsertMethod()
        {
                WWWForm form=new WWWForm();
                form.AddField("post_name",txt_Name);
                form.AddField("post_score",txt_Score);
                form.AddField("post_message",txt_Message);
                WWW w=new WWW(url,form);
         yield return w;
                print (w.text);
                
        }
}

nilite 发表于 2016-4-16 12:11


不错 不错 不错

icefox 发表于 2016-4-17 23:07


我很懒,只想回复看看,另感谢楼主分享

vipl 发表于 2016-4-25 17:11


不错 不错 不错

ruru310050061 发表于 2016-4-25 21:54

感谢楼主的无私分享++

mooglee 发表于 2016-5-2 18:23

非常感谢 谢谢分享

badwei 发表于 2016-5-3 23:51

123123123123

kr96851 发表于 2016-5-5 09:34

666666666666666666

767321403 发表于 2016-5-5 09:39


感谢楼主的无私分享!
页: 79 80 81 82 83 84 85 86 87 88 [89] 90 91 92 93 94 95 96 97 98
查看完整版本: c#中文版电子书