dom tag

52 questions


1 answers
328 views
0
Hide(), show() does not work synchronously, so I don't know the problem.

The direction I intend is as follows.However, when the code is executed, it seems that number 2, number 3, and number 4 are processed after calculating the prediction value of number 3.While calculati...


1 answers
448 views
0
I want to generate a list of random numbers with the shortest possible code.

I'd like to use the list initialized with random numbers in Unity c#, but the current method will result in a long code as follows.For me, who has become Python, it's very troublesome to write like th...

1 years ago

1 answers
354 views
0
unity I want to generate a beautiful random number list

I'd like to use a list initialized with random numbers in unity c#, but with this method, the code will be this long.For me, who has become python, it's very troublesome to write like this every timeI...

1 years ago

1 answers
327 views
0
Python Random Walks Question

#1, if code is implemented as Python basic typeimport randomposition = 0walk = [position]steps = 1000for i in range(steps): step = 1 if random.randint(0, 1) else -1 position += step walk.append(positi...

1 years ago

1 answers
329 views
0
Import with import filename from 'folder path';

I saw that the code drawn in React is used as follows, but since the export name is Index, import Index from 'hoge'; looks correct. Can I still use the Index component like <hoge/>?I would appre...


2 answers
110 views
0
In some cases, random number generation in C language always results in the same value.

In the code below, num is 0 to 6, but all of them are 4.Seven of num=land()%7 is a number between 0 and that number.Why is it only like this when it's 7?The environment is MacBook Pro, xcode Version 6...

1 years ago

1 answers
118 views
0
How do I add to the DOMDocument?

<?php class SitemapGenerator{ private$sitemap; private$urlset=array(); function__construct(){ $this->sitemap=new DOMDocument('1.0', 'UTF-8'); $this->sitemap->preserveWhiteSpace=false; $...

1 years ago

2 answers
108 views
0
I want to get the last li element of the nth ul element

I want to get the text of the last child element of the nth ul element.Currently, we are able to retrieve the text of the last child element of the ul element.var lastChild = document.querySelector('u...

1 years ago

2 answers
92 views
0
Error when using other properties in this during object initialization

I am currently using javascript and HTML to create certain functions, but there was an error in the definition of the object during the production process, so I cannot get out of it.Please tell me how...

1 years ago

1 answers
94 views
0
random walk with boundary conditions

While generating random numbers on the stage below (3D), when random walking, I wrote the following code using stage as a conditional statement, but sometimes it works well and sometimes it doesn't.I ...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.