承接 netlogix/eel-javascript 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

netlogix/eel-javascript

最新稳定版本:1.1.0

Composer 安装命令:

composer require netlogix/eel-javascript

包简介

Neos Eel Helper to embed inline JavaScript

README 文档

README

Neos Eel Helper to embed inline JavaScript from files.

Installation

composer require netlogix/eel-javascript

Usage

You can use the JavaScriptHelper in your Fusion files like this:

Scripts without Variables

To include scripts that don't require external variables, you can use the embed method.

script = ${Netlogix.JavaScript.embed('resource://Netlogix.Eel.JavaScript/Private/ScriptWithVars.js')}

Scripts with Variables

To include scripts that require external variables, you can use the embedWithVariables method.

scriptWithVars = ${Netlogix.JavaScript.embedWithVariables('resource://Netlogix.Eel.JavaScript/Private/ScriptWithVars.js', {'someVariableName': 'someValue'})}

This will prefix the included javascript file with the variables passed to the method:

var someVariable= 'someValue';
/// ... your script ScriptWithVars.js

统计信息

  • 总下载量: 6.68k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-19