I have worked in C++ with memset() and definitely this function need not to be introduced here.Now I want to know what is the memset() equivalent function in jQuery? I searched the internet but can’t find anything.Is there any equivalent function in jquery yet?
I have worked in C++ with memset() and definitely this function need not to
Share
There is no javascript equivalent to
memset.memsetis a low level C function, whose implementation and interface rely on the fact that you have access to both the address and the memory representation of a variable.None of these two preconditions are valid for javascript. You could implement something that sets an object’s internals to null and zero (based on reflection/metadata), but that’s quite a different issue.