PHP code example of quansitech / qscmf-wsig
1. Go to this page and download the library: Download quansitech/qscmf-wsig library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
quansitech / qscmf-wsig example snippets
$pc = new Wsig(); //初始化不指定宽高,自适应后台页面大小,适合PC端页面展示
//或者
$mobile = new Wsig(411, 731); //设置固定宽高尺寸,适合移动端
//渲染组件html效果
//第一个参数是前台页面的html
//第二个参数是所见即所得react组件需要配置的options 具体查看react组件说明文档
$mobile->render('/?mobile=1', ['imageUploadUrl' => '/api/upload/uploadImage']);