How to realize the Constellation query function by JavaScript
This article mainly introduces JavaScript how to achieve constellation query function, the article introduces in great detail, has a certain reference value, interested friends must read it!
I. title
Enter a birthday value in the text box and click the button to display the corresponding constellation for this birthday. Define a function that receives a birthday value (a 4-digit string of months and days, such as "0210", "1225", etc.) and prompts the constellation to which it belongs according to the birthday value.
2. Code Constellation query Please enter a birthday value (such as 0123):