如何在ios中发送以下类型的参数?

时间:2018-03-28 22:13:47

标签: ios swift

这是我在带有原始请求的邮递员中使用的请求参数。

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script>

  <!-- Script For Highlighting -->
  <script src="https://unpkg.com/aframe-event-set-component@^4.0.0/dist/aframe-event-set-component.min.js"></script>
  <!-- Script For Web Travel -->
  <script>
    AFRAME.registerComponent('navigate-on-click', {
      schema: {
        url: {
          default: ''
        }
      },

      init: function() {
        var data = this.data;
        var el = this.el;
        console.log(el);
        el.addEventListener('click', function() {
          //window.location.href = data.url;
          console.log("works");
        });
      }
    });
  </script>


  <title> YC EXPERIENCE </title>



</head>


<body>
  <a-scene>


    <a-assets>
      <img id="sky" src="http://fakereal.co/cyberspace.jpg">
      <img id="buzzingtracks" src="http://www.fakereal.co/buzzingtracksmarch.png">
      <img id="animesunday" src="http://www.fakereal.co/animesundaygraphic.png">
      <img id="ycoriginals" src="http://www.fakereal.co/ycoriginalsgraphic.png">
      <img id="wallpapers" src="http://www.fakereal.co/wallpapersgraphic.png">
    </a-assets>

    <!-- Sky -->
    <a-sky src="#sky" rotation="0 0 0"></a-sky>

    <!-- Buzzing Tracks -->
    <a-box width="500" height="500" depth="500" position="-1399.286 -66.072 5.656" rotation="0 -316.189 0" src="#buzzingtracks" navigate-on-click="url: yugencreations://#!section=16787412" color="#FFFFFF" shadow="" event-set__enter="_event: mouseenter; color: #FFFF00"
      event-set__leave="_event: mouseleave; color: #FFFFFF">

      <a-animation attribute="rotation" dur="2000" to="0 -500 0" repeat="indefinite"></a-animation>

    </a-box>
    <!-- Anime Sunday -->

    <a-box width="500" height="500" depth="500" position="-835.773 -100.22 -1217.11" rotation="0 -320.0374406229489 0" src="#animesunday" navigate-on-click="url: yugencreations://#!section=16787412" color="#FFFFFF" shadow="" event-set__enter="[object Object]"
      event-set__leave="[object Object]">

      <a-animation attribute="rotation" dur="2000" to="0 -500 0" repeat="indefinite"></a-animation>

    </a-box>


    <!-- YC Originals -->
    <a-box width="500" height="500" depth="500" position="264.552 -105.496 -1242.917" rotation="0 -320.0354311738257 0" src="#ycoriginals" navigate-on-click="url: yugencreations://#!section=16787412" shadow="" event-set__enter="[object Object]" event-set__leave="[object Object]"
      material="">

      <a-animation attribute="rotation" dur="2000" to="0 -500 0" repeat="indefinite"></a-animation>

    </a-box>


    <!-- Wallpapers -->

    <a-box width="500" height="500" depth="500" position="1392.653 -115.664 -278.839" rotation="0 -323.90948623644624 0" src="#wallpapers" navigate-on-click="url: yugencreations://#!section=16787412" color="#FFFFFF" shadow="" event-set__enter="[object Object]"
      event-set__leave="[object Object]">

      <a-animation attribute="rotation" dur="2000" to="0 -500 0" repeat="indefinite"></a-animation>

    </a-box>


    <!-- Camera -->

    <a-entity camera rotation="2.8647889756541165 4.182591904455009 0" look-controls wasd-controls data-aframe-inspector-original-camera>
    <a-entity position="0 0 -1" geometry="primitive:ring;radiusInner:0.01;radiusOuter:0.02" material="shader:flat;color:cyan" raycaster="far: 5000" cursor="fuse: true; fuseTimeout: 1500">
      </a-entity>
      

    </a-entity>

  </a-scene>

</body>

</html>

请告诉我如何为此请求设置参数。 我尝试了以下设置参数,但它也没有用。

{
    "details":
    {
        "fullName":"manish", 
        "password":"123456", 
        "email":"manish@gmail.com", 
        "mobile":"",
        "dob":"", 
        "profilePic": ""
    }
}

请帮忙。

1 个答案:

答案 0 :(得分:1)

在我看来,除了类型之外,关于代码的所有内容都是正确的。你有一本字典词典,其中一切都是from django import forms #Currently not used INT_CHOICES = [tuple([x,x]) for x in range(0,11)] class TicketForm(forms.Form): ticket_quantity = forms.IntegerField(widget=forms.Select(choices=INT_CHOICES))

将最后一部分更改为String