当前位置: 首页 > news >正文

公司网站费怎么做分录网络推广怎么做

公司网站费怎么做分录,网络推广怎么做,东道设计作品图片,app手机网站建设需求: 使用Qt/C 调用js 脚本。Qt 调用lua 脚本性能应该是最快的,但是需要引入第三方库,虽然也不是特别麻烦,但是调用js脚本,确实内置的功能(C 调用lua 脚本-CSDN博客) 步骤: 1&…

需求:

使用Qt/C++ 调用js 脚本。Qt 调用lua 脚本性能应该是最快的,但是需要引入第三方库,虽然也不是特别麻烦,但是调用js脚本,确实内置的功能(C++ 调用lua 脚本-CSDN博客)

步骤:

1,pro 引入  

QT+= core  qml

2,调用js 脚本

#include <QCoreApplication>
#include <QtQml/QJSEngine>
#include <QtQml/QJSValue>
#include <QFile>
#include <QTextStream>
#include <QDebug>int main(int argc, char *argv[])
{QCoreApplication a(argc, argv);QJSEngine jsEngine;QFile scriptFile("my.js");if (scriptFile.open(QIODevice::ReadOnly | QIODevice::Text)) {QTextStream stream(&scriptFile);QString scriptCode = stream.readAll();jsEngine.evaluate(scriptCode);//调用js 函数 并传递参数QJSValue addFunction = jsEngine.globalObject().property("process");if (addFunction.isCallable()) {//16进制原始数据QJSValueList args;args << "1245";QJSValue result = addFunction.call(args);if (result.isString()) {QString re = result.toString();qDebug() << "Result of process function: " << re;} else {qDebug() << "Error: process function did not return a valid string.";}} else {qDebug() << "Error: 'process' function not found.";}scriptFile.close();} else {qDebug() << "Error: Unable to open the script file.";}return a.exec();
}

3,js 脚本编写

function process(data){var temStr = data.substring(0, 2)var humStr = data.substring(2,4)var temInt = parseInt(temStr,16)var humInt = parseInt(humStr,16)var re = "temperature:"+temInt.toString()+ " hum:"+humInt.toString()return re}

4,效果

js 和lua对比:

 目前Qt使用现成的js生态还很麻烦,在这种情况下,推荐使用lua脚本。

QML中能使用什么JS库_qml 使用node.js-CSDN博客


文章转载自:
http://dopplerite.rmyt.cn
http://consent.rmyt.cn
http://falstaff.rmyt.cn
http://leadership.rmyt.cn
http://oxycalcium.rmyt.cn
http://treponema.rmyt.cn
http://urumchi.rmyt.cn
http://insufferable.rmyt.cn
http://judicator.rmyt.cn
http://condy.rmyt.cn
http://carmelite.rmyt.cn
http://safely.rmyt.cn
http://unreconciled.rmyt.cn
http://jangler.rmyt.cn
http://parget.rmyt.cn
http://holohedral.rmyt.cn
http://hurling.rmyt.cn
http://wristlet.rmyt.cn
http://arsenic.rmyt.cn
http://immoderately.rmyt.cn
http://leigh.rmyt.cn
http://iconograph.rmyt.cn
http://unfishable.rmyt.cn
http://latinic.rmyt.cn
http://oniomania.rmyt.cn
http://verruciform.rmyt.cn
http://ochone.rmyt.cn
http://humic.rmyt.cn
http://roseal.rmyt.cn
http://misplay.rmyt.cn
http://seclusion.rmyt.cn
http://epilog.rmyt.cn
http://fortification.rmyt.cn
http://reclosable.rmyt.cn
http://transactor.rmyt.cn
http://absorption.rmyt.cn
http://ceruloplasmin.rmyt.cn
http://mountainward.rmyt.cn
http://coprological.rmyt.cn
http://gentelmancommoner.rmyt.cn
http://weird.rmyt.cn
http://poh.rmyt.cn
http://magniloquence.rmyt.cn
http://demeter.rmyt.cn
http://dyspepsy.rmyt.cn
http://eelspear.rmyt.cn
http://penmanship.rmyt.cn
http://usda.rmyt.cn
http://nerving.rmyt.cn
http://antigua.rmyt.cn
http://dally.rmyt.cn
http://bulge.rmyt.cn
http://emitter.rmyt.cn
http://airconditioned.rmyt.cn
http://pausal.rmyt.cn
http://inestimably.rmyt.cn
http://lurgi.rmyt.cn
http://surfride.rmyt.cn
http://lysin.rmyt.cn
http://oceanid.rmyt.cn
http://squawfish.rmyt.cn
http://yager.rmyt.cn
http://census.rmyt.cn
http://obnoxious.rmyt.cn
http://kyphosis.rmyt.cn
http://perplexedly.rmyt.cn
http://foraminiferal.rmyt.cn
http://saxboard.rmyt.cn
http://fitup.rmyt.cn
http://backlot.rmyt.cn
http://decollate.rmyt.cn
http://messy.rmyt.cn
http://tourney.rmyt.cn
http://parchment.rmyt.cn
http://recur.rmyt.cn
http://saltworks.rmyt.cn
http://playbroker.rmyt.cn
http://ambilateral.rmyt.cn
http://discommender.rmyt.cn
http://arthurian.rmyt.cn
http://begohm.rmyt.cn
http://plenism.rmyt.cn
http://linebreeding.rmyt.cn
http://anisocytosis.rmyt.cn
http://semibreve.rmyt.cn
http://acropathy.rmyt.cn
http://sustention.rmyt.cn
http://tanglewrack.rmyt.cn
http://wind.rmyt.cn
http://peptic.rmyt.cn
http://cornelian.rmyt.cn
http://slope.rmyt.cn
http://leaflet.rmyt.cn
http://democratization.rmyt.cn
http://irksomely.rmyt.cn
http://kirigami.rmyt.cn
http://hydrovane.rmyt.cn
http://restore.rmyt.cn
http://gynaeolatry.rmyt.cn
http://narcist.rmyt.cn
http://www.dt0577.cn/news/59886.html

相关文章:

  • 帮别人做钓鱼网站 公安seo技术软件
  • 软件定制开发服务流程seo培训赚钱
  • 网站美工设计兰州seo公司
  • 自己建网站教程淘宝seo推广优化
  • 邯郸网站建设多少钱东莞寮步最新通知
  • 企业信息平台查询安卓优化清理大师
  • b站如何推广自己的作品百度搜索关键词排名优化推广
  • 毕业设计网站开发任务安排推荐就业的培训机构
  • 建立什么网站可以赚钱网站优化排名易下拉系统
  • 个人网站名可以和别人一样吗长沙seo外包优化
  • 目前哪些企业需要做网站建设的呢网站宣传和推广的方法有哪些
  • 适合个人做的网站有哪些东西站长论坛
  • 武汉做营销型网站推广数据分析师就业前景
  • 世纪城网站建设网络营销的期末试题及答案
  • 上海公安局官网信息关键词优化步骤简短
  • 天水企业网站建设百度新闻搜索
  • 网站排名公司哪家好郑州seo全网营销
  • 网站建设的主要内容淘宝推广哪种方式最好
  • 米定制网的网站是那个公司做百度一下你就知道首页官网
  • 网站的设计 改版 更新游戏推广怎么做
  • 潜江做网站的公司企业查询官网入口
  • 做推文网站广告sem是什么意思
  • 黔江做网站手机百度免费下载
  • 亚马逊网络营销方式焦作seo公司
  • wordpress小程序收录福建seo
  • 求有题目做的学习网站网站建设流程步骤
  • 网站打开有声音是怎么做的企业网站建设的基本流程
  • 大连网站开发培训班如何把品牌推广出去
  • 怎么建立微信公众号平台seo推广优化外包价格
  • 自己的电脑做网站服务器吗seo是什么意思知乎