javascript - How to add if statements to an object block -
This script works, and is an example script that creates a context menu. But I need that What is it clicked on differently basis?
$ (function () {$ .contextMenu} How do I apply if the statement for each item from the list, such as Hide 'Edit' items, etc. ({Selector: '.context-menu-one', build: function ($ trigger, e) {return: {items: {"edit": {name: "edit", icon : "Edit", callback: function, "cop "Name": "paste", icon: "cut"}, "copy": {name: "copy", icon: "copy"}, "paste": {name: "paste", icon: "paste"} , "Delete": {name: "delete", icon: "delete"}, "sep1": "---------", "Skip": {name: "Skip", icon: "Skip" "}}}}}});});
one
var foo = {bar} Use: {falcon: (function () {// some code return "value" here;}) ()}}; Foo.bar.baz // = & gt; "Value"
Comments
Post a Comment