大约有 41,800 项符合查询结果(耗时:0.0264秒) [XML]
Is there a JavaScript function that can pad a string to get to a determined length?
I am in need of a JavaScript function which can take a value and pad it to a given length (I need spaces, but anything would do). I found this:
...
Divide a number by 3 without using *, /, +, -, % operators
How would you divide a number by 3 without using * , / , + , - , % , operators?
48 Answers
...
Best way for a 'forgot password' implementation? [closed]
I'm looking for the best method to implement a "forgot password" feature.
10 Answers
1...
Dynamic type languages versus static type languages
What are the advantages and limitations of dynamic type languages compared to static type languages?
9 Answers
...
How can you do anything useful without mutable state?
I've been reading a lot of stuff about functional programming lately, and I can understand most of it, but the one thing I just can't wrap my head around is stateless coding. It seems to me that simplifying programming by removing mutable state is like "simplifying" a car by removing the dashboard:...
How do ACID and database transactions work?
What is the relationship between ACID and database transaction?
8 Answers
8
...
Counting null and non-null values in a single query
I have a table
26 Answers
26
...
Test if characters are in a string
I'm trying to determine if a string is a subset of another string. For example:
9 Answers
...
Determining if a number is either a multiple of ten or within a particular set of ranges
I have a few loops that I need in my program. I can write out the pseudo code, but I'm not entirely sure how to write them logically.
...
Difference between toFixed() and toPrecision()?
I'm new to JavaScript and just discovered toFixed() and toPrecision() to round numbers. However, I can't figure out what the difference between the two is.
...
