{"json_modified": "2014-05-08T04:57:33.538569", "slug": "Mozilla/Projects/Rhino/Rhino\u6982\u8ff0", "tags": [], "locale": "zh-CN", "title": "Tutorial: Embedding Rhino", "translations": [{"locale": "en-US", "url": "/en-US/docs/Mozilla/Projects/Rhino/Embedding_tutorial", "last_edit": "2014-04-14T14:58:52", "title": "Tutorial: Embedding Rhino"}], "modified": "2014-05-08T04:57:33", "label": "Tutorial: Embedding Rhino", "url": "/zh-CN/docs/Mozilla/Projects/Rhino/Rhino%E6%A6%82%E8%BF%B0", "last_edit": "2014-05-08T04:57:32", "summary": "Embedding Rhino can be done simply with good results. With more effort on the part of the embedder, the objects exposed to scripts can be customized further.", "sections": [{"id": "In_this_document.3A", "title": "In this document:"}, {"id": "RunScript.3A_A_simple_embedding", "title": "RunScript: A simple embedding"}, {"id": "Entering_a_Context", "title": "Entering a Context"}, {"id": "Initializing_standard_objects", "title": "Initializing standard objects"}, {"id": "Collecting_the_arguments", "title": "Collecting the arguments"}, {"id": "Evaluating_a_script", "title": "Evaluating a script"}, {"id": "Printing_the_result", "title": "Printing the result"}, {"id": "Exiting_the_Context", "title": "Exiting the Context"}, {"id": "Expose_Java_APIs", "title": "Expose Java APIs"}, {"id": "Using_Java_APIs", "title": "Using Java APIs"}, {"id": "Implementing_interfaces", "title": "Implementing interfaces"}, {"id": "Adding_Java_objects", "title": "Adding Java objects"}, {"id": "Using_JavaScript_objects_from_Java", "title": "Using JavaScript objects from Java"}, {"id": "Using_JavaScript_variables", "title": "Using JavaScript variables"}, {"id": "Calling_JavaScript_functions", "title": "Calling JavaScript functions"}, {"id": "JavaScript_host_objects", "title": "JavaScript host objects"}, {"id": "Defining_Host_Objects", "title": "Defining Host Objects"}, {"id": "Counter_example", "title": "Counter example"}, {"id": "Counter's_constructors", "title": "Counter's constructors"}, {"id": "Class_name", "title": "Class name"}, {"id": "Dynamic_properties", "title": "Dynamic properties"}, {"id": "Defining_JavaScript_.22methods.22", "title": "Defining JavaScript \"methods\""}, {"id": "Adding_Counter_to_RunScript", "title": "Adding Counter to RunScript"}], "id": 926, "review_tags": []}