Home>
Content
JAVASCRIPT shows the object size as an array
I am writing a code to display at a magnification.
CHROME works, but IE has an error.
In the process of fetching list elements as a variable,
Is there a way to work with IE?
SCRIPT5009: 'w' is not defined.
var mag = [[45, 30, 1], [60, 40, 0.75], [90, 60, 0.5], [135, 90, 0.33], [ 200, 133, 0.225], [300, 200, 0.15], [450, 300, 0.1]];
var magg = 0;
function smallView () {
obj = parent.frm_a01b.lenz;
if (magg>0) {magg = magg-1;};
[w, h, m] = mag [magg];
$(obj) .css ('width', w + 'px');
$(obj) .css ('height', h + 'px');
obj = parent.frm_a01b.myresult;
$(obj) .css ('zoom', m);
$(obj) .css ('width', parseInt (w * 13.3) + 'px');
$(obj) .css ('height', parseInt (h * 13.3) + 'px');
}
-
Answer # 1
Related articles
- javascript - font does not change
- javascript - how to make a card that can be moved with html, css, js
- javascript - is there a vuejs selector?
- javascript - z-index does not work in full screen menu
- javascript - how to reflect the edit of stylecss in the browser in the situation using django and bootstrap
- javascript - is there a way to keep information that cannot be disclosed to the outside, such as access keys, on the front end s
- when there are many , css "display: none;" or javascript "append"?
- javascript - i want to write a code that puts out a leap year in js
- javascript does not run on circleci
- javascript - it is not displayed if there are multiple
- javascript - tab panel does not work
- javascript - is there a way to check if the string is escaped with the chrome developer tool?
- javascript - this is a situation where mathjax is not working i want to display a mathematical expression after asynchronous pro
- javascript addeventlistener does not work well
- javascript - js using onclick does not work
- javascript - addeventlistener does not work
- javascript - [there is a postscript] i am worried that only chrome is spinning around forever
- javascript - is there any advantage to using some instead of foreach in js?
- javascript - hamburger menu does not apply
- javascript - jquery does not load
Trends
I think it's a destructive assignment, but IE doesn't support it in the first place.
MDN: split assignment
If IE support is essential, consider changing the implementation method.