MCPcopy Index your code
hub / github.com/cxwithyxy/Axure_Js_Inject

github.com/cxwithyxy/Axure_Js_Inject @v2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0 ↗ · + Follow
8 symbols 22 edges 7 files 0 documented · 0% updated 4y agoV3 · 2019-12-19★ 383 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Axure_Js_Inject v2.0

可以在产品原型(RP)中加入你想要的js代码,这些js代码会用浏览器浏览产品原型的时候执行


支持

  • Axure rp 9.0
  • Chrome 浏览器 73版 及以上

更好的说明

Axure_js_inject 的使用说明(尚未修复页面的兼容问题)

开始

  • 在元件库中导入 Axure_Js_Inject.rplib

使用{{}}占位符执行代码

  • 从Axure_Js_Inject元件库中拖拽{{}}到你的页面上

  • 在可以使用[[]]的地方,便可以使用{{}}

  • 如“设置文本”成当前时间:

  • 用[[]]方法时,输入的是[[Now]]

  • 用{{}}方法时,输入的是{{new Date()}}

  • 但是{{}}占位符可以实现更多的功能

  • 如展示浏览器UA

  • {{navigator.userAgent}}

使用code_Box执行代码

  • 从Axure_Js_Inject元件库中拖拽code_Box到你的页面上

  • 把js代码粘贴到code_Box中

使用case_Expose

case_Expose 用于把axure中的事件处理的case提取接口给外部js调用

  • 从Axure_Js_Inject元件库中拖拽case_Expose到你的页面上

  • case_Expose中设置文本为你想要的接口名称(如: 移动那个东西)

  • 设置case_Expose的交互--鼠标单击时--case为: 移动另一个元件

  • 在任意可以执行js代码的地方(如: code_Box)调用你想要的接口名称(如: 移动那个东西();)

Core symbols most depended-on inside this repo

_binOpNum
called by 4
dev/expr.js
right
called by 4
dev/expr.js
left
called by 3
dev/expr.js
checkOps
called by 2
dev/expr.js
isEqual
called by 2
dev/expr.js
_binOpOverride
called by 2
dev/expr.js
_substituteSTOs
called by 2
dev/expr.js
random_Maker
called by 1
dev/random_Content.js

Shape

Function 8

Languages

TypeScript100%

Modules by API surface

dev/expr.js7 symbols
dev/random_Content.js1 symbols

For agents

$ claude mcp add Axure_Js_Inject \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact